Skip to content

Commit

Permalink
Do not jump start gaps when paused (#5502)
Browse files Browse the repository at this point in the history
Resolves #5499
  • Loading branch information
robwalch authored May 26, 2023
1 parent 966bd3d commit 75d9d2d
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 75d9d2d

Please sign in to comment.