Skip to content

Commit

Permalink
fix: Fix isEnded when is not fullyLoaded (#7883)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 17, 2025
1 parent 433aa81 commit 794ca74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -8109,7 +8109,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
if (!this.video_ || this.video_.ended) {
return true;
}
return !this.isLive() && this.video_.currentTime >= this.seekRange().end;
return this.fullyLoaded_ && !this.isLive() &&
this.video_.currentTime >= this.seekRange().end;
}
};

Expand Down

0 comments on commit 794ca74

Please sign in to comment.