I am trying to create:
- a live stream, which will play 24/7, available to viewers
- a dynamic controller, through which a human will be able to change real-time the content being shown in the above live stream by specifying other live streams or static video content.
So, onAppStart, I create a Stream object
Stream theStream = Stream.createInstance(vhost, appInstance.getApplication().getName(), "someName");
Then, I use
theStream.play("theDesiredContent", -2, -1, true);
theStream.addToPlaylist("theDesiredContent", technicalDifficultiesMovie, 0, -1);
to dynamically insert the content I want (where the technicalDifficultiesMovie is a fall-back in case of issues)
Is this a good approach?
How can I control aspects of the stream, especially buffer time? (Can I convert it to an IMediaStream somehow?)