m=audio 0 RTP/P 96
b=AS:23
b=X-:21
b=RS:0
b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:audio
a=stream:1
m=application 0 RTP/P 96
b=RS:0
b=RR:0
a=rtpmap:96 x-wms-rtx/1000
a=control:rtx
a=stream:65536
m=video 0 RTP/P 96
b=AS:292
b=X-:280
b=RS:0
b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:video

a=stream:2
第三步:设置传输方式,tcp还是udp,客户端连接的端口
发送:
SETUP rtsp://xxx.rm/audio RTSP/1.0
CSeq: 2
Transport: x-real-rdt/mcast;client_port=6970;mode=play,x-real-rdt/udp;client_port=6970;mode=play,x-pn-tng/udp;client_port=6970;mode=play,RTP/P;unicast;client_port=6970-6971;mode=play,x-pn-tng/tcp;mode=play,x-real-rdt/tcp;mode=play,RTP/P/TCP;unicast;mode=play
User-Agent: RealMedia Player HelixDNAClient/10.0.1.1070 (win32)
返回:
RTSP/1.0 200 OK
Blocksize: 1464
Transport: RTP/P/TCP;unicast;interleaved=0-1;ssrc=6b82d10a;mode=PLAY
Date: Thu, 08 Jul 2010 03:51:42 GMT
CSeq: 2
Session: 5664383775462788894;timeout=60
Server: WMServer/9.1.1.3814
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile
Last-Modified: Thu, 20 Sep 2007 13:38:40 GMT
Cache-Control: x-wms-content-size=103215582, max-age=86399, must-revalidate, proxy-revalidate
Etag: "103215582"
第四步:通知服务器要开始播放
发送:
PLAY rtsp://xxxx.rm RTSP/1.0
Session: 5664383775462788894
CSeq: 4
Range: npt=13.605-
Speed: 1000.000
Bandwidth: 2147483647
X-Accelerate-Streaming: AccelDuration=1000000;AccelBandwidth=2147483647
rtsp服务器返回RTP信息:
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-47686-3.html
这事就算了
不爆炸是因为是穿甲弹