我正在使用C#中的应用程序来播放流式视频(rtsp协议),但我似乎无法使其正常工作。
以下是播放器和服务器的通信。
谁能告诉我它有什么问题?我无法理解为什么玩家最后会发出TEARDOWN命令。
OPTIONS rtsp://207.207.160.4:8554/xmedia?dev=103&objid=103&authorizationid=b39cea1565ce2444c9185a31afeb88574008 RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2009.03.22)
RTSP/1.0 200 OK
CSeq: 1
Date: Sat, Sep 24 2011 11:33:53 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, SET_PARAMETER
DESCRIBE rtsp://207.207.160.4:8554/xmedia?dev=103&objid=103&authorizationid=b39cea1565ce2444c9185a31afeb88574008 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2009.03.22)
RTSP/1.0 200 OK
CSeq: 2
Date: Sat, Sep 24 2011 11:33:55 GMT
Server: VideoNEXT v271
Content-Base: rtsp://207.207.160.4:8554/h264media/
Content-Type: application/sdp
Content-Length: 429
v=0
o=- 1316576079161558 1 IN IP4 207.207.160.4
s=Media Presentation
i=h264media
t=0 0
a=tool:VideoNEXT streamer v2.7.1
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Media Presentation
a=x-qt-text-inf:h264media
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001E;sprop-parameter-sets=Z0IAHuKQKDPz4C3AQEB4eJEV,aM48gA==
a=control:track1
SETUP rtsp://207.207.160.4:8554/h264media/track1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=64768-64769
User-Agent: VLC media player (LIVE555 Streaming Media v2009.03.22)
RTSP/1.0 200 OK
CSeq: 3
Date: Sat, Sep 24 2011 11:33:55 GMT
Transport: RTP/AVP;unicast;destination=180.190.232.217;client_port=64768-64769;server_port=53364-53365
Session: 1
PLAY rtsp://207.207.160.4:8554/h264media/ RTSP/1.0
CSeq: 4
Session: 1
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2009.03.22)
RTSP/1.0 200 OK
CSeq: 4
Date: Sat, Sep 24 2011 11:33:55 GMT
Range: npt=0.000-
Session: 1
RTP-Info: url=rtsp://207.207.160.4:8554/h264media/track1;seq=63388
TEARDOWN rtsp://207.207.160.4:8554/h264media/ RTSP/1.0
CSeq: 5
Session: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2009.03.22)
RTSP/1.0 200 OK
CSeq: 5
Date: Sat, Sep 24 2011 11:34:01 GMT