[Live-devel] Pausing an rtsp stream with TCP
Ross Finlayson
finlayson at live.com
Tue Sep 13 15:55:22 PDT 2005
>I have a question about 'Pausing' a rtsp stream with TCP.
Can you explain this a bit more? Are you referring to (i)
implementing the RTSP "PAUSE" command in a RTSP client; (ii)
implementing the RTSP "PAUSE" command in a RTSP server, if the RTP
stream is being sent via UDP (the normal case); or (iii) implementing
the RTSP "PAUSE" command in a RTSP server, if the RTP stream is being
sent via TCP (i.e., over the RTSP TCP connection)?
If you're talking about (i), then the "RTSPClient" class already has
a "pauseMediaSession()" operation.
If you're talking about (ii), then the RTSP server implementation
already implements "PAUSE" on unicast streams (using
"OnDemandServerMediaSubsession"). However, to use this, your input
source class (a subclass of "FramedSource") will need to implement
the virtual function "doStopGettingFrames()".
If you're talking about (iii), then it currently can't be done. (For
RTP-over-TCP, once the "RTPSource" object starts reading from the TCP
connection, the TCP connection can then no longer be used for RTSP commands.)
Ross Finlayson
Live Networks, Inc. (LIVE.COM)
<http://www.live.com/>
More information about the live-devel
mailing list