Skip to content

Commit

Permalink
fix: Do not seek to first subtitle (#7312)
Browse files Browse the repository at this point in the history
The bug was introduced in #6340, and affects v4.6.16-18, v4.7.12-15,
v4.8.0-20, v4.9.0-26, v4.10.0-16, and v4.11.0.

Closes #7310
  • Loading branch information
joeyparrish committed Sep 13, 2024
1 parent c6fc473 commit a51b156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -6740,11 +6740,13 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
this.playhead_.notifyOfBufferingChange();
// Skip the initial buffer gap
const startTime = this.mediaSourceEngine_.bufferStart(contentType);
const ContentType = shaka.util.ManifestParserUtils.ContentType;
if (
!this.isLive() &&
// If not paused then GapJumpingController will handle this gap.
this.video_.paused &&
startTime != null &&
contentType != ContentType.TEXT &&
startTime > 0 &&
this.playhead_.getTime() < startTime
) {
Expand Down

0 comments on commit a51b156

Please sign in to comment.