[RTSP][2012-06-16] RTSP OPTIONS

来源:互联网 发布:圆形画框软件 编辑:程序博客网 时间:2024/06/07 04:50
Methods: OPTIONS

direction: Client to Server 
requirement: Required 
作用: 當Client 要使用非標準的 method 時, Client 就會向 Server 發出這個 Request, 而 Server 則會傳回它所提供的可使用的 methods.

Example:

C -> S : 
        OPTIONS * RTSP/1.0 1 
        PEP:     {{map "http://www.iana.org/rtsp/implicit-play"}} 
                     {{map "http://www.iana.org/rtsp/record-feature"}} 
        C-PEP: {{map "http://www.iana.org/rtsp/udp-control"}} 
                     {{map "http://www.iana.rog/rtsp/gzipped-messages"}} 
S -> C : 
        RTSP/1.0 200 1 OK 
        PEP-Info:        {{map "http://www.iana.org/rtsp/implicit-play"} {for "/" *}} 
                                {{map "http://www.iana.org/rtsp/record-feature"} {for "/" *}} 
        C-PEP-Info:    {{map "http://www.iana.org/rtsp/udp-control"} {for "/" *}} 
                                {{map "http://www.iana.org/rtsp/gzipped-messages"} {for "/" *}} 
        Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

======

C -> S : 
        OPTIONS * RTSP/1.0 
        CSeq: 1 
  
S -> C : 
        RTSP/1.0 200 OK 
        CSeq: 1 
        Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE 

原创粉丝点击