fix(xgplayer-hls):修复HLS点播场景空列表时未触发报错问题

This commit is contained in:
lixiangfei 2024-06-18 19:48:40 +08:00 committed by lixiangfei
parent afa6e9be5d
commit 2ef52de850

View File

@ -166,13 +166,14 @@ export function parseMediaPlaylist (lines, parentUrl, useLowLatency) {
if (lastSegment) {
if (endOfList) {
lastSegment.isLast = true
media.live = false
}
media.endSN = lastSegment.sn
media.endPartIndex = lastSegment.partIndex
}
if (endOfList) {
media.live = false
}
media.totalDuration = totalDuration
media.endCC = curCC