[Live-devel] Issue in sharing source via OnDemandServerMediaSubsession

Steve Ha steveha at u2sr.com
Thu Dec 26 17:15:07 PST 2019


You are right, for closing stream source the way you mentioned is simpler
than my way.
But for other purposes, I would handle the job in the same class.

Thanks again.
Regards.


On Fri, Dec 27, 2019 at 1:13 AM Ross Finlayson <finlayson at live555.com>
wrote:

>
>
> > On Dec 27, 2019, at 2:08 AM, Steve Ha <steveha at u2sr.com> wrote:
> >
> > After seeing no issue in the testOnDemandRtspServer, I check my program
> again and
> > I found the cause.
>
> I’m glad to hear this!
>
>
> > Previously I handled streaming ON/OFF in the function
> > DerivedOnDemandxxx::deleteStream(clientSessionId, streamToken) {}
> > Now I realized that doing so is reasonable only when reuseFirstSource =
> False.
> > When  reuseFirstSource = True, the right place to control stream is at
> function
> > DerivedOnDemandxxx ::closeStreamSource(FramedSource* inputSource) {}
>
> Actually, an even simpler solution would be to turn off streaming only in
> your “FramedSource” subclass’s destructor.  Then you wouldn’t need to
> redefine “closeStreamSource()” (or “deleteStream()”) at all.
>
> (See, for example, “liveMedia/DeviceSource.cpp”)
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20191227/465c4a84/attachment.htm>


More information about the live-devel mailing list