[Live-devel] OnDemandServerMediaSubSession
Aeschbacher Fabrice
Fabrice.Aeschbacher at siemens.com
Mon Jun 27 12:51:33 PDT 2005
Hi Ross,
This is a good idea, I probably should have asked erlier: it is
beginning to work, I am able to start streaming "on demand". Thanks for
your help!
However:
. I had to declare PassiveServerMediaSubsession's constructor,
destructor and startStream() method as 'protected' in
PassiveServerMediaSubsession.hh (were: 'private'). What do you think
about changing this in your official source code?
. 'startStream()' is getting called, whereas 'deleteStream()' actually
never does. I tried with different client: mplayer, openRTSP, Quicktime
and VLC. Any idea?
Best regards,
Fabrice Aeschbacher
> -----Original Message-----
> From: live-devel-bounces at ns.live.com
> [mailto:live-devel-bounces at ns.live.com] On Behalf Of Ross Finlayson
> Sent: Freitag, 24. Juni 2005 18:09
> To: LIVE.COM Streaming Media - development & use
> Subject: Re: [Live-devel] OnDemandServerMediaSubSession
>
>
> >. Is it basicaly possible to write an OnDemandServer to stream on a
> >multicast address?
>
> It's probably possible to do this, but it would be a bit
> strange, because "OnDemandServerMediaSubsession", as written,
> creates and 'plays' a new "RTPSink" object for each client
> connection. In your case, that is not what you want.
> Instead, you want to create just a single "RTPSink", but to
> 'play' it only when one or more clients are requesting it.
>
> So, instead, I would suggest subclassing
> "PassiveServerMediaSubsession"
> (which you already have working), and redefining the virtual
> functions "startStream()" and "deleteStream()" to start
> playing, or stop playing, the "RTPSink" object, based on a
> reference count. I.e., "startStream" would increment the
> reference count, and start playing the "RTPSink" if the
> reference count is now 1. "deleteStream" would decrement the
> reference count, and stop playing the "RTPSink" if the
> reference count is now 0.
>
>
> Ross Finlayson
> LIVE.COM
> <http://www.live.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
>
More information about the live-devel
mailing list