From d07161f18fde8b474a7996a8337a84cf356dc161 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 3 Apr 2020 22:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=92=AD=E6=97=B6=E9=97=B4=E8=BD=B4?= =?UTF-8?q?=E5=85=BC=E5=AE=B9VLC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/Rtsp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rtsp/Rtsp.h b/src/Rtsp/Rtsp.h index 12dd281a..c428f2e4 100644 --- a/src/Rtsp/Rtsp.h +++ b/src/Rtsp/Rtsp.h @@ -268,7 +268,8 @@ public: if(dur_sec <= 0){ _printer << "a=range:npt=now-\r\n"; }else{ - _printer << "a=range:npt=now-" << dur_sec << "\r\n"; + //点播情况下,vlc不支持支持npt=now-xxx, 但是貌似echo show只支持npt=now-xxx ? + _printer << "a=range:npt=0-" << dur_sec << "\r\n"; } _printer << "a=control:*\r\n"; }