diff --git a/lib/media/gap_jumping_controller.js b/lib/media/gap_jumping_controller.js index 27d93ab6c1..fa45c7979d 100644 --- a/lib/media/gap_jumping_controller.js +++ b/lib/media/gap_jumping_controller.js @@ -243,6 +243,13 @@ shaka.media.GapJumpingController = class { } this.video_.currentTime = jumpTo; + // This accounts for the possibility that we jump a gap at the start + // position but we jump _into_ another gap. By setting the start + // position to the new jumpTo we ensure that the check above will + // pass even though the video is still paused. + if (currentTime == this.startTime_) { + this.startTime_ = jumpTo; + } this.gapsJumped_++; this.onEvent_( new shaka.util.FakeEvent(shaka.util.FakeEvent.EventName.GapJumped));