4.4.4.1 SelectStream Using SET_PARAMETER

A client can request the server to switch streams. The stream switch requests are performed by submitting a SelectStream (section 2.2.7.10) request to the server. The SelectStream (section 2.2.7.10) request specifies the application/x-wms-streamswitch (section 2.2.6.3.9) media type:

 Content-Type: application/x-wms-streamswitch

This is an example of the message body in the request:

  
  
 SSEntry: 7 6 0 rtsp://myserver.com/myMBRcontent.wmv/stream=7
 rtsp://myserver.com/myMBRcontent.wmv/stream=6

In this case, the client is requesting that the server stop sending stream 7, and instead start sending stream 6 in its place. The client is requesting that the server perform no thinning (that is, thinning level of 0).

The following example illustrates the conversation between the server and client during a stream switch request from stream 7 to 6 with no thinning.

Client to server:

  
  
 SET_PARAMETER rtsp://myserver.com/myMBRcontent.wmv/stream=7 
 RTSP/1.0
 Content-Length: 112
 User-Agent: WMPlayer/9.0.0.2899 guid/3300AD50-2C39-46C0-AE0A-FF4DD9402916
 Accept-Charset: UTF-8, *;q=0.1
 X-Accept-Authentication: Negotiate, NTLM, Digest, Basic
 Accept-Language: en-us, *;q=0.1
 Session: 14828520034371861638
 Content-Type: application/x-wms-streamswitch
 CSeq: 8
 X-Playlist-Gen-Id: 1547
 If-Match: "{0279ED14-1413-E1EE-14DF-E327B7519C52}"
  
 SSEntry: 7 6 0 rtsp://myserver.com/myMBRcontent.wmv/stream=7
 rtsp://myserver.com/myMBRcontent.wmv/stream=6

Server to client:

  
  
 RTSP/1.0 200 OK
 Date: Wed, 09 Oct 2002 19:26:03 GMT
 CSeq: 8
 Session: 14828520034371861638;timeout=60
 Server: WMServer/9.0.0.3239
 .
 .
 ... continue receiving content...