4.4.4.3 SelectStream After Predictive Stream Selection
Assume for the first entry that the client selects the following streams: /audio, /video. For the second entry, the server predicts streams /audio=2, /video=5. If the client wants to deselect the stream /audio=2, or switch from /audio=2 to /audio=3, the client chooses one of the originally selected streams (/audio or /video), and then sends a TEARDOWN (section 2.2.7.13) or SET_PARAMETER (section 2.2.7.10.3) request by using the original stream URL with the SSEntry message body referencing the new stream. Both the original and the new stream require the same transport (UDP or TCP) and use the same RTP payload format.
Looking at a simple case, if all streams (/audio, /video, /audio=2, /video=5) use the same transport and RTP payload format, the client is free to select any stream (/audio or /video).
For example, the client can use the following request to deselect the /audio=2 stream:
-
TEARDOWN rtsp://host/abc/video Content-Type: application/x-wms-streamswitch 2 2 2 rtsp://host/abc/audio=2 rtsp://host/abc/audio=2