刷新间隔默认为`timeShiftBufferDepth`的一半

This commit is contained in:
nilaoda 2022-07-10 12:12:01 +08:00
parent 1795d3920e
commit d5f8c49e5d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
//读取声道数量