Skip to content

Commit

Permalink
fix(xgplayer-hls):修复HLS点播场景空列表时未触发报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiangfei authored and llftt committed Jun 18, 2024
1 parent afa6e9b commit 2ef52de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/xgplayer-hls/src/hls/manifest-loader/parser/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ef52de

Please sign in to comment.