From d5f8c49e5d81a9000c2f40916ee315376342dca6 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 10 Jul 2022 12:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=97=B4=E9=9A=94=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=BA`timeShiftBufferDepth`=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E5=8D=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs index 89271fc..7b85623 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs @@ -146,10 +146,10 @@ namespace N_m3u8DL_RE.Parser.Extractor _ => null }; streamSpec.Playlist.IsLive = isLive; - //设置刷新间隔 + //设置刷新间隔 timeShiftBufferDepth / 2 if (timeShiftBufferDepth != null) { - streamSpec.Playlist.RefreshIntervalMs = XmlConvert.ToTimeSpan(timeShiftBufferDepth).TotalMilliseconds; + streamSpec.Playlist.RefreshIntervalMs = XmlConvert.ToTimeSpan(timeShiftBufferDepth).TotalMilliseconds / 2; } //读取声道数量