[Live-devel] Proper way to stream several files with livelibraries?

Ross Finlayson finlayson at live.com
Tue Nov 23 13:10:25 PST 2004


>So it would be for 2 sinks:
>sink1->startPlaying();
>sink2->startPlaying();
>env1->taskScheduler().doEventLoop();

That's correct.

>But how do I get to start again when the multifile source has ended? Do I 
>have to reopen the source and call startPlaying() similar to what 
>testMPEG1or2VideoStreamer does

Yes. But note, though, that you will need to do this from within the 'after 
playing' function that you passed to the call to "startPlaying()".  (The 
reason for this is that, at this point, you are still executing within 
"doEventLoop()".)


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list