2.2.7.10.1 SelectStream Using SETUP

The syntax for the SETUP request method is specified in [RFC2326] section 10.4, with the following additional constraints:

  • The SelectStream request includes the Transport (section 2.2.6.11) header.

  • For SelectStream requests for non-retransmission streams, the following rule applies: For transport-spec syntax elements on the Transport header that specify UDP as the transport protocol, each stream MUST specify the same port value on the client_port parameter. If the client_port parameter specifies a pair of port values, the two values in the pair MUST be different but the pair is identical for each transport-spec and for every Transport header.

  • For retransmission streams, for transport-spec syntax elements on the Transport header that specify UDP as the transport protocol, each stream specifies a port value on the client_port parameter that is different from the port value used by any other stream. This makes it possible to distinguish retransmitted RTP packets from non-retransmitted RTP packets. For details, see section 2.2.3.1.

For information on how to determine if a stream is a retransmission stream, see section 2.2.5.2.5.

If the server is supposed to transmit only ASF media objects that contain key-frame data for the stream identified by the URL in the SETUP request line then the SETUP request method includes the message body, as specified in section 2.2.7.10. Otherwise, the message body is not included.

When the message body is included, the value of the OldStream parameter is 4,294,967,295 and the value of the ThinLevel parameter is 1. The value of the NewStreamURI parameter is identical to the URL specified on the SETUP request line.

The response to the SelectStream request includes the Transport header.

The following example shows a SETUP request without message body.

 SETUP rtsp://myserver.com/mycontent.wmv/audio RTSP/1.0
 User-Agent: WMPlayer/9.0.0.2833 guid/B64345F5-8C45-4818-8A1A-4775F0923FAC
 Accept-Charset: UTF-8, *;q=0.1
 X-Accept-Authentication: Negotiate, NTLM, Digest
 Accept-Language: en-US, *;q=0.1
 CSeq: 3
 X-Playlist-Gen-Id: 2
 Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=6095d7d7;mode=PLAY