我试图对不同的rtsp请求和响应进行打包和解析。现在我正在尝试rtsp SET_PARAMETER
请求。我想知道rtsp set_parameter (success)
响应是什么样子的。在rtsp规范中,给定的示例如下
C->S: SET_PARAMETER rtsp://example.com/media.mp4 RTSP/1.0
CSeq: 10
Content-length: 20
Content-type: text/parameters
barparam: barstuff
S->C: RTSP/1.0 451 Invalid Parameter
CSeq: 10
Content-length: 10
Content-type: text/parameters
barparam
这就是请求的参数是无效参数的情况。我正在寻找一个成功的rtsp 200 ok
响应。如果有人知道它的样子,请帮帮我。我试着在谷歌上搜索,但没有得到任何有用的结果。
发布于 2013-11-13 01:35:32
例如,从AirPort Express到SET_PARAMETER(卷)的有效RTSP响应如下所示:
RTSP/1.0 200 OK
Server: AirTunes/105.1
CSeq: 5
(empty line)
请注意,(empty line)
只是一个空行,而不是文字字符串。stackoverflow格式只删除了尾随的空行。响应中没有正文。
发布于 2016-10-27 18:56:24
下面是取自here的一个示例
有效请求:
SET_PARAMETER rtsp://myserver/axis-media/media.amp RTSP/1.0
CSeq: 7
Session: 12345678
Content-Type: text/parameters
Content-Length: 19
响应:
RTSP/1.0 200 OK
CSeq: 7
Session: 12345678
Date: Wed, 16 Jul 2008 13:01:25 GMT
和
无效请求:
SET_PARAMETER rtsp://myserver/axis-media/media.amp RTSP/1.0
CSeq: 7
Session: 12345678
Require: com.axis.parameters-in-header
响应:
RTSP/1.0 551 Option not supported
CSeq: 7
Session: 12345678
Unsupported: com.axis.parameters-in-header
Date: Wed, 16 Jul 2008 13:01:24 GMT
https://stackoverflow.com/questions/14302312
复制相似问题