Skip to content

Commit

Permalink
fix: Disable live sync when the stream is paused (#7579)
Browse files Browse the repository at this point in the history
Fixes #7577

Backported to v4.9.x
  • Loading branch information
avelad authored and joeyparrish committed Nov 19, 2024
1 parent b60a47c commit 2d6dabe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -6258,6 +6258,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
return;
}

// We don't want to block the user from pausing the stream.
if (this.video_.paused) {
return;
}

let liveSyncMaxLatency;
let liveSyncPlaybackRate;
if (this.config_.streaming.liveSync) {
Expand Down

0 comments on commit 2d6dabe

Please sign in to comment.