[RTSP][2012-06-16] RTSP SETUP

Methods: SETUP

direction: Client to Server 
requirement: required 
目的: SETUP method 可以讓 Client 告知 Server 端, 它可以用何種 mechanism 接受資料, 即使是一個已經存在的 stream, Client 也可以用 SETUP method 告知 Server 轉換成另一種 mechanism ( 若 Server 不 允 許, 則 傳 回 error message:"45x Method not valid in this state" ).

Example:

C -> S : 
        SETUP rtsp://example.com/foo/bar/baz.rm RTSP/1.0 
        CSeq: 302 
        Transport: RTP/AVP;unicast;client_port=4588

S -> C : 
        RTSP/1.0 200 OK 
        CSeq: 302 
        Date: 23 Jan 1997 15:35:06 GMT 
        Transport: RTP/AVP;unicast;client_port=4588;server_port=6255

 

 

說明:

1. unicast: 單播

2. multicast:組播

3. broadcast:廣播

發佈了20 篇原創文章 · 獲贊 3 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章