Skip to content

Commit

Permalink
fix: lower llhls m3u8 interval
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyongjinAtBD authored and wudechang committed Aug 16, 2024
1 parent 603127e commit 1c5de5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer-hls/src/hls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export class Hls extends EventEmitter {
let pollInterval

if (this._playlist.lowLatency) {
pollInterval = (this._playlist.currentStream.partTargetDuration * 2 || 0) * 1000
pollInterval = (this._playlist.currentStream.partTargetDuration || 0) * 1000
} else {
pollInterval = (this._playlist.lastSegment?.duration || 0) * 1000
}
Expand Down

0 comments on commit 1c5de5d

Please sign in to comment.