Skip to content

Commit

Permalink
fix: Do not seek to first subtitle
Browse files Browse the repository at this point in the history
The bug was introduced in shaka-project#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 shaka-project#7310
  • Loading branch information
joeyparrish committed Sep 13, 2024
1 parent a320438 commit 5666598
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 @@ -7241,11 +7241,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 5666598

Please sign in to comment.