[Live-devel] subclassing RTSPServer
Tim Doyle
TimDoyle at LumenVox.com
Wed Mar 23 17:08:57 PST 2005
I see that, but I would like to (for example) send a custom response or take
other action in response to SESSION and DESCRIBE events. Is there a way to
do this?
-----Original Message-----
From: live-devel-bounces at ns.live.com [mailto:live-devel-bounces at ns.live.com]
On Behalf Of Ross Finlayson
Sent: Wednesday, March 23, 2005 4:17 PM
To: LIVE.COM Streaming Media - development & use
Subject: Re: [Live-devel] subclassing RTSPServer
>I am interested in subclassing RTSPServer in order to take custom
>actions in response to particular RTSP methods. It appears that
>RTSPServer was not designed to be subclassed, as function
>incomingConnectionHandler1 and class RTSPClientSession are declared
>private and the former non-virtual. What is the recommended way to do this
sort of customization?
Do you want to add handle new RTSP commands, or change the way that the
existing RTSP commands ("PLAY", "PAUSE" etc.) are handled. If it's the
latter, then the best way to do this is using subclasses of
"ServerMediaSession" (*not* "RTSPServer").
Note that "ServerMediaSession" already defines virtual functions
"startStream()", "pauseStream()", etc., with subclasses of
"ServerMediaSession" implementing these.
Ross Finlayson
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