[Live-devel] Problem handling multiple MPEG streams.

Ross Finlayson finlayson at live.com
Thu Aug 11 17:40:47 PDT 2005


>>>  Is there a way to handle multiple RTP streams safely?
>>
>>Note that you *don't* need to use multiple threads to receive 
>>multiple RTP streams.  Instead, you can just use a single thread 
>>(and UsageEnvironment and TaskScheduler and event loop).
>
>That sounds perfect!  Is there a sample that illustrates how one 
>would do this? I cannot figure out how to use more than one RTP 
>source with MediaSink. MediaSink::startPlaying takes a single 
>MediaSource.   Is there another way to startPlay before running the eventloop?

No, but to handle several incoming sources, you create several 
different "MediaSink" objects - one for each source.  Then, call 
"startPlaying()" on each one, then call "doEventLoop()" to enter the 
event loop.


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



More information about the live-devel mailing list