2 个解决方案
#1
对于暂停播放实时流,VLC的暂停是这么发的:
TEARDOWN rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 5
Session: 1227219267
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 5 Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
TEARDOWN rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 5
Session: 1227219267
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 5 Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
#2
更正一下,写成两行,实际数据是\r\n
CSeq: 5
Server: SAE HD Server
暂停后要继续播放时,发这个:
PLAY rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 4
Session: 1227219267
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 4
Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
红色是C端请求,蓝色是S端应答.
CSeq: 5
Server: SAE HD Server
暂停后要继续播放时,发这个:
PLAY rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 4
Session: 1227219267
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 4
Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
红色是C端请求,蓝色是S端应答.
#1
对于暂停播放实时流,VLC的暂停是这么发的:
TEARDOWN rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 5
Session: 1227219267
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 5 Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
TEARDOWN rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 5
Session: 1227219267
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 5 Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
#2
更正一下,写成两行,实际数据是\r\n
CSeq: 5
Server: SAE HD Server
暂停后要继续播放时,发这个:
PLAY rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 4
Session: 1227219267
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 4
Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
红色是C端请求,蓝色是S端应答.
CSeq: 5
Server: SAE HD Server
暂停后要继续播放时,发这个:
PLAY rtsp://192.168.3.222/HD RTSP/1.0
CSeq: 4
Session: 1227219267
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)
RTSP/1.0 200 OK
CSeq: 4
Server: SAE HD Server
Content-Length: 0
Cache-Control: no-cache
Session: 1227219267
红色是C端请求,蓝色是S端应答.