客戶端請(qǐng)求 協(xié)商兩個(gè)端口56400和56401,其中56400用于RTP,56401用于RTCP;
服務(wù)端響應(yīng)協(xié)商,服務(wù)端用6970和6971兩個(gè)端口,6970用于RTP,6971用于RTCP;
請(qǐng)求播放
響應(yīng)請(qǐng)求播放,接下來(lái)就在協(xié)商的端口上發(fā)送RTP包了。
OPTIONS rtsp://192.168.2.115/slamtv10.264 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/
RTSP/1.0 200 OK
CSeq: 2
Date: Fri, Mar 17 2017 07:03:59 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE,GET_PARAMETER, SET_PARAMETER
DESCRIBE rtsp://192.168.2.115/slamtv10.264 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/
Accept: application/sdp
RTSP/1.0 200 OK
CSeq: 3
Date: Fri, Mar 17 2017 07:04:00 GMT
Content-Base: rtsp://192.168.2.115/slamtv10.264/
Content-Type: application/sdp
Content-Length: 525
v=0
o=- 1489734239908613
s=H.264 Video, streamed by the LIVE555 Media Server
i=slamtv10.264
t=0 0
a=tool:LIVE555 Streaming Media v2017.01.26
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 MediaServer
a=x-qt-text-inf:slamtv10.264
m=video 0 RTP/AVP 96
c=IN IP4
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96packetization-mode=1;profile-level-id=4D4033;sprop-parameter-sets=Z01AM5JUDAS0IAAAAwBAAAAM0eMGVA==,aO48gA==
a=control:track1
SETUP rtsp://192.168.2.115/slamtv10.264/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/
Transport: RTP/AVP;unicast;client_port=49298-49299
RTSP/1.0 200 OK
CSeq: 4
Date: Fri, Mar 17 2017 07:04:00 GMT
Transport:RTP/AVP;unicast;destination=192.168.2.107;source=192.168.2.115;client_port=49298-49299;server_port=6970-6971
Session: 1041AE
PLAY rtsp://192.168.2.115/slamtv10.264/ RTSP/1.0
CSeq: 5
User-Agent: LibVLC/
Session: 1041AE
Range: npt=0.000-
RTSP/1.0 200 OK
CSeq: 5
Date: Fri, Mar 17 2017 07:04:00 GMT
Range: npt=0.000-
Session: 1041AE
RTP-Info: url=rtsp://192.168.2.115/slamtv10.264/track1;seq=24913;rtptime=3524424615
GET_PARAMETER rtsp://192.168.2.115/slamtv10.264/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/
Session: 1041AE
RTSP/1.0 200 OK
CSeq: 6
Date: Fri, Mar 17 2017 07:04:00 GMT
Session: 1041AE
Content-Length: 10
2017.01.26TEARDOWN rtsp://192.168.2.115/slamtv10.264/ RTSP/1.0
CSeq: 7
User-Agent: LibVLC/
Session: 1041AE
RTSP/1.0 200 OK
CSeq: 7
Date: Fri, Mar 17 2017 07:04:04 GMT
聯(lián)系客服