[Red5] How to synchronize two NetStreams Object?

Fabio_ merameo at yahoo.com
Thu Dec 4 00:47:01 PST 2008


Hello,
I'm developing a client for Red5 that needs to play two different video
stream. These streams has to be synchronized. I have two flv files with
different bandwidth (one with audio and video and one with just video) and I
need to play and control (stop, pause, seek) them in a synchronized way. For
instance when I push the play button the two streams should start together,
when I push stop the streams should stop together, and so on... For sending
the streams I'm using two separate NetStream Objects.  Obviously to call the
play method of NetStream Objects in the same function doesn't work. 

public function play() : void {
	_stream1.play();
        _stream2.play();
}

Is there any elegant solution for synchronize the streams? Where have I to
synchronize them, in the client or in the server?


I thank in advance who can help me!

Best regards.

Fabio

-- 
View this message in context: http://www.nabble.com/How-to-synchronize-two-NetStreams-Object--tp20816202p20816202.html
Sent from the Red5 - English mailing list archive at Nabble.com.




More information about the Red5 mailing list