[Live-devel] DeviceSource and RTSP server

Ross Finlayson finlayson at live555.com
Sun Jun 26 07:48:10 PDT 2011


>If there is only one client connected everything is going good, but
>when the another client will connect, the first instance of
>DeviceSource doesn't get any data (deliverFrame() and doGetNextFrame()
>will not be executed) and only current instance is executed. How can I
>force executing of all DeviceSource instances?

Actually, you have this backwards.  Because you are streaming from a 
live input source, you want only one instance of your "DeviceSource" 
class to be created at a time, even if more than one client is 
connecting concurrently.

To do this, make sure that the constructor of your 
"OnDemandServerMediaSubsession" subclass sets the "reuseFirstSource" 
parameter to True, when it calls the "OnDemandServerMediaSubsession" 
(i.e., its parent class) constructor.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list