I'm not sure if this is a similar issue or not, but here's what we have seen and our work-around.
When we switch between a VOD stream and go to a live web cam stream, it can take a long time for the VOD stream to stop playing and the live web cam to start. We haven't really tested to have hard data, but it almost appears to take as long for the VOD to stop as it has been playing. For example, if we start the star wars trailer and it plays for 10 seconds, and then we inititate a switch to a live video camera stream, it takes about 10 seconds for the trailer to stop and the switch to occur. Likewise with other amounts of playing time. This does not appear to happen when switching between VOD only, they switch quickly. As a work around, we put a very short flv on the server with a something like three seconds of black. Then, when we want to switch from a VOD source to a live video source, we switch to the black flv first, and then take the live video. It seems to work in most cases. I'm guessing there is some kind of buffering problem in certain circumstances that causes this. The switch through black seems to help our situation. Hope this helps. Bill ----- Original Message ----- From: [EMAIL PROTECTED] To: [email protected] Sent: Tuesday, September 19, 2006 1:08:31 PM GMT-0500 Subject: [Red5] Switch Stream Hi Guys, I have got the whole switch thing working on the server side except that the subscribed stream keeps buffering and freezes in the end. Everything works fine though. What do I have to tweek to get the stream stable if it doesn't do as expected? here is the code I used on the serverSide: public void switchStream(String streamName){ currentStream = streamName; item.setStart(0); item.setLenngth(10000); item.setName(currentStream); servereStream.addItem(item); serverStream.start(); } client side code: function doSwitch(){ nc.call("switchStream", null, dg.selecteditem.streamName) } this code changes the stream alright if called from the clientSide. flvs are listed in a listBox. The stream is only not stable and I dont know what to do to get it stable. Some suggestions or help will very much be appreciated. Thanks Sloopy _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
