Skip to content

Commit

Permalink
Do not jump start gaps when paused
Browse files Browse the repository at this point in the history
Resolves #5499
  • Loading branch information
robwalch committed May 24, 2023
1 parent a58ce98 commit 406cec9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/gap-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export default class GapController {
: MAX_START_GAP_JUMP;
const partialOrGap = this.fragmentTracker.getPartialFragment(currentTime);
if (startJump > 0 && (startJump <= maxStartGapJump || partialOrGap)) {
this._trySkipBufferHole(partialOrGap);
if (!media.paused) {
this._trySkipBufferHole(partialOrGap);
}
return;
}
}
Expand Down

0 comments on commit 406cec9

Please sign in to comment.