I created a server side switching module that switches live and on-demand streams onto a “master” stream object. Works fine except for when I try to switch to a real-time transcoded version of a stream.
Specifically, I have a webcam stream sending Speex audio so I am transcoding it to AAC codec. When I attempt to switch to the transcoded stream that has the AAC codec, it doesn’t switch right away. It takes up to 2 minutes for it to actually show up on the stream.
Any suggestions on how to resolve this? I need to switch to the AAC version of the stream so that the audio on the recording comes through.
I have the following stream properties set on the server side switching module:
stream.setMoveToNextIfLiveStreamMissing(false);
stream.setStartLiveOnPreviousKeyFrame(true);
stream.setUnpublishOnEnd(false);
Eddie