[Live-devel] Multiple clients on a single FramedSource substream

David J Myers david.myers at panogenics.com
Sat Jan 28 15:58:34 PST 2012


>In your "OnDemandServerMediaSubsession" subclass constructor, are you
setting the "reuseFirstSource" parameter (in the parent class constructor)
to True?  This is important if - as in your case - you're streaming from a
live input source.  It prevents a new input source object from being created
each time a new client connects.

 

Yes, I believe I am setting this flag to true, so I can't understand why I'm
getting more source objects (and an increasing reference count). I'm setting
it in the constructor shown below, is this enough?

LiveMediaSubsession::LiveMediaSubsession(

           UsageEnvironment& env,

           streamSubStream_t *substream) :

     OnDemandServerMediaSubsession(env, true /* reuse first source */),

     _substream(substream)

{

     FUNCTION_TRACE;

}

Cheers - David

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120128/64b171d7/attachment.html>


More information about the live-devel mailing list