[Live-devel] sub-classing ProxyServerMediaSession
Craig Matsuura
cmatsuura at vivint.com
Tue Dec 17 07:57:10 PST 2013
Is there a reason DEBUG is left on in RTSPServer.cpp?
#include <GroupsockHelper.hh>
#define DEBUG 1 //#####@@@@@
////////// RTSPServer implementation //////////
RTSPServer*
RTSPServer::createNew(UsageEnvironment& env, Port ourPort,
Thanks,
Craig
On 12/14/2013 11:48 PM, Ross Finlayson wrote:
On Dec 10, 2013, at 1:53 PM, Craig Matsuura <cmatsuura at vivint.com<mailto:cmatsuura at vivint.com>> wrote:
One working on sub classing ProxyServerMediaSession and also sub classing ProxyRTSPClient. I have overridden the createNewProxyRTSPClient(). The problem I'm having is the createNewProxyRTSPClient() is called from the constructor of the ProxyServerMediaSession, and the method I just overrode is not being called.
FYI, I've just installed a new version (2013.12.15) of the "LIVE555 Streaming Media" software that changes the API for creating a new object of your "ProxyRTSPClient" subclass.
Now, you do the following:
- Define your own subclass of "ProxyRTSPClient", as before
- Define your own function
ProxyRTSPClient* myCreateNewProxyRTSPClientFunc(ProxyServerMediaSession& ourServerMediaSession,
char const* rtspURL,
char const* username, char const* password,
portNumBits tunnelOverHTTPPortNum, int verbosityLevel,
int socketNumToServer)
that returns a new object of your "ProxyRTSPClient" subclass.
- Define your own subclass of "ProxyServerMediaSession".
- In the constructor of your subclass of "ProxyServerMediaSession", pass your new function "myCreateNewProxyRTSPClientFunc" as the final parameter to the constructor of the parent class (i.e., "ProxyServerMediaSession").
(For more details, see "liveMedia/include/ProxyServerMediaSession.hh")
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131217/55bcc7e2/attachment-0001.html>
More information about the live-devel
mailing list