[Live-devel] Detect proxy name before being proccessed
Jesús Leganés
jesus.lc at vaelsys.com
Tue Jun 26 02:27:36 PDT 2012
Worked like a charm :-D At first i thought about do some polling too,
but i was worried about blocking the event-machine, but this solve it
in a nice way :-)
2012/6/26 Ross Finlayson <finlayson at live555.com>:
> So my question is, how can i be able to detect when the proxy has
> finished with it's configuration and added the camera connection
> ProxyServerMediaSubsessions?
>
>
> On thinking about this some more, I came up with a better solution - one
> that doesn't require a separate 'polling' delayed task.
>
> First, download the latest version - 2012.06.26 - of the "LIVE555 Streaming
> Media" code.
>
> Then, add the following line to your "lookupServerMediaSession()"
> implementation, after you've created (or looked up) the
> "ProxyServerMediaSession" object:
>
> envir()->taskScheduler().doEventLoop(&(proxyServerMediaSession->describeCompletedFlag));
>
> At this point, you can also check
> proxyServerMediaSession->describeCompletedSuccessfully()
> If this is True, then you know that the back-end "DESCRIBE" command
> completed successfully. If, however, it's False, then you know that
> the back-end "DESCRIBE" command completed, but unsuccessfully - presumably
> because the back-end stream does not exist.
>
> 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
>
--
Jesús Leganés Combarro
Software developer at Vaelsys
More information about the live-devel
mailing list