[Live-devel] Closing injector question
jers at inwind.it
jers at inwind.it
Tue Sep 20 10:32:31 PDT 2005
Thanks, Ross
so, if I understand, you say that the right sequence should be:
videoSink->stopPlaying()
close(injector); // DarwinInjector Object
and when I want to restart:
videoSink->startPlaying()
injector = DarwinInjector::CreateNew(...)
injector->addStream(videoSink, videoRTCP);
injector->setDestination(...)
Is it enought? I mean, what about the RTCPInstance, rtcpGroupsockVideo, rtpGroupsockVideo objects?
Will they stay quiet without problems (timeout...)?
regards
Jers
> >I'm afraid that doing as in your suggestion, the TCP connection will
> >stay on, while I need to have different connections for any
> >injection. Given that the connection is opened by the injector, I
> >suppose I should close the injector in order to release the connection.
>
> Yes, if you don't want to keep the TCP connection open, the easiest
> way to do this is to close (using "Medium::close()") the
> "DarwinInjector" object, after calling "videoSink->stopPlaying()".
>
>
> Ross Finlayson
> Live Networks, Inc. (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