Search code examples
rtsp

Can a RTSP pause request be supported while playing a live video stream?


I wondered whether the PAUSE request of RTSP protocol can be supported while playing a live video stream.

For example, a real time video stream from a camera.


Solution

  • From the RFC:

    10.6 PAUSE

    The PAUSE request causes the stream delivery to be interrupted
    (halted) temporarily. If the request URL names a stream, only
    playback and recording of that stream is halted. For example, for
    audio, this is equivalent to muting. If the request URL names a
    presentation or group of streams, delivery of all currently active
    streams within the presentation or group is halted. After resuming
    playback or recording, synchronization of the tracks MUST be
    maintained.

    The specification does not say whether live stream pausing must or should be available. PAUSE makes sense for live streams in terms of temporarily not sending data. However it is up to server to support or not support this command. My guess is that few cameras implement it for live video - the options are either to receive and not display video, or disconnect and re-connect later.