精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
The only significant addition to RFC 2326 is that when receiving a broadcast over UDP, the QuickTime server uses SETUP with mode=RECORD to generate and send back to the client a UDP port to use when the SDP contains a port value of 0 for a given stream. Otherwise, the server uses the SDP-defined port to receive the streams. The server's receive port is declared in the SETUP response transport header. The format looks exactly as if a client were performing a SETUP request for a stream from the server and then receiving the port the server is sending from.
客户端发送给服务器端:
ANNOUNCE rtsp://127.0.0.1/mystream.sdp RTSP/1.0\r\n |
|
服务器端发送给客户端:
RTSP/1.0 200 OK\r\n |
|
客户端发送给服务器端:
OPTIONS rtsp://127.0.0.1/mystream.sdp RTSP/1.0\r\n |
|
服务器端发送给客户端:
RTSP/1.0 200 OK\r\n |
|
客户端发送给服务器端:
SETUP rtsp://127.0.0.1/mystream.sdp/trackid=1 RTSP/1.0\r\n |
|
服务器端发送给客户端:
RTSP/1.0 200 OK\r\n |
|
客户端发送给服务器端:
SETUP rtsp://127.0.0.1/mystream.sdp/trackid=2 RTSP/1.0\r\n |
|
服务器端发送给客户端:
RTSP/1.0 200 OK\r\n |
|
客户端发送给服务器端:
RECORD rtsp://127.0.0.1/mystream.sdp RTSP/1.0\r\n |
|
服务器端发送给客户端:
RTSP/1.0 200 OK\r\n |
|