Problem while switching between live and recorded stream
- August 31, 2009
- 2 replies
- 949 views
Hi all,
I am new to FMS. I apologize if this is ridiculously simple or poorly phrased.
I am working on an application which acts as a web TV. It will telecast a live stream and switches to recorded stream on certain point of time. And once the recorded stream gets over it switches to live stream. The switching from live to recorded is done using 'NetConnection.call()' method which will notify the server app to switch the streams.
The application works fine with exact point of switch. But every time I switch between recorded stream and live stream the buffer starts accumulating instead of constant time.Hence the recorded stream switching gets delayed after each switch. I have tried 'Stream.flush()' and 'Stream.setBufferTime(0)' to remove the delay. But none of them helped.
I am attaching the server side application which does the switching. Client side doesnt have anything apart from 'VideoDisplay' whose source is same as the one published from server app. Other client is used for triggering the switch of stream as mentioned above.
Any suggestions or links would be of great help.
Thanks in advance,
gnraghu
