优化`timeShiftBufferDepth`不存在的情况 Fix #211

This commit is contained in:
nilaoda 2023-06-28 14:05:16 +08:00
parent ba1844ca99
commit ae771d240c
1 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,11 @@ namespace N_m3u8DL_RE.Parser.Extractor
var availabilityStartTime = mpdElement.Attribute("availabilityStartTime")?.Value;
//在availabilityStartTime的前XX段时间分片有效
var timeShiftBufferDepth = mpdElement.Attribute("timeShiftBufferDepth")?.Value;
if (string.IsNullOrEmpty(timeShiftBufferDepth))
{
//如果没有 默认一分钟有效
timeShiftBufferDepth = "PT1M";
}
//MPD发布时间
var publishTime = mpdElement.Attribute("publishTime")?.Value;
//MPD总时长