[Live-devel] Adding multiple sources

Ross Finlayson finlayson at live555.com
Sun Apr 2 06:32:56 PDT 2006


>I'm trying to use live library in my VoIP application. I need to be 
>able to add and remove RTP sources in run time.
>
>What I currently do is:
>
>1)      Stop the doEventLoop loop by setting watch variable from other thread
>
>2)      Add new RTP source
>
>3)      Restart the doEventLoop
>
>This is ugly - when a new channel is added all others are stopped, 
>so there is a hiccup in the sound stream.

I don't see how this would happen.  The three steps you listed should 
take no significant time.  So, there must be something else you're 
doing (perhaps in combination with your step 2?) that's causing this delay.


>How can I add a new source without stopping the doEventLoop ?

Yes, of course - you can create new "RTPSource"s from within the 
event loop.  Of course, you have to do this within the LIVE555 event 
loop itself - i.e., in response to an event - not from within your 
external thread.  However, as I noted above, I'm not convinced that 
this would solve the problem with your application.


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>



More information about the live-devel mailing list