[Live-devel] Set ProxyServerMediaSession::fProxyRTSPClient as protected
Jesús Leganés
jesus.lc at vaelsys.com
Fri Jun 29 05:16:17 PDT 2012
I have review the code and yes, it seems it's the correct way but i
would need another modification on the code: change
RTSPClient::sendRequest() from private to protected, too. This way i
could be able to inherit this method on a child class that send the
event to my subsystem, and later just to call to the original
RTSPClient method.
2012/6/29 Jesús Leganés <jesus.lc at vaelsys.com>:
> 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
--
Jesús Leganés Combarro
Software developer at Vaelsys
More information about the live-devel
mailing list