29 Jun 2012 13:18
Set ProxyServerMediaSession::fProxyRTSPClient as protected
I'm needing to be able to detect and log the connect/disconnect/playing/paused/etc events done on the ProxyServerMediaSession against the remote camera, so i thought i could do it inheriting the internal ProxyRTSPClient and using a custom one (i don't know if there's a better way to do it). The fact is that reviewing the code it seems to me it's the correct aproach, just use a ProxyServerMediaSession child constructor that inits ProxyServerMediaSession::fProxyRTSPClient to my own ProxyRTSPClient child class and i'm ready, but the fact is that this attribute is private, so i can't be able to access to it. Do you know if there's another better way to do it? And if not, could you be able to set it as protected? I know that ProxyServerMediaSession is intended to be a black box, i only want it to be a little bit gray... :-P By the way, i don't know if it would be better to do what i want the ProxyServerMediaSession::fClientMediaSession attribute (i don't believe so), but it's also private, so i got the same problem here. Greetings, Jesús Leganés Combarro. -- -- Jesús Leganés Combarro Software developer at Vaelsys
At this moment i'm able to
detect and log this way connections between clients and the proxy, and
now i need to detect and log connections between the proxy and the
remote camera (the 'back-end' server as you say).
> But if your intention is instead to detect/log only connections from the
> proxy server to the 'back-end' server (which is only a subset of the number
> of connections from front-end clients to the proxy server), then:
>
Yes, exactly what i want to do
RSS Feed