刷新间隔默认为`timeShiftBufferDepth`的一半
This commit is contained in:
parent
1795d3920e
commit
d5f8c49e5d
|
@ -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;
|
||||
}
|
||||
|
||||
//读取声道数量
|
||||
|
|
Loading…
Reference in New Issue