Skip to content

Commit

Permalink
fix: Fix ended state in stateHistory (#7189)
Browse files Browse the repository at this point in the history
Closes #6918
  • Loading branch information
avelad committed Aug 22, 2024
1 parent 56ac85b commit 200497f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -6467,10 +6467,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
let updateState = 'playing';
if (this.bufferObserver_.getState() == State.STARVING) {
updateState = 'buffering';
} else if (this.video_.paused) {
updateState = 'paused';
} else if (this.video_.ended) {
updateState = 'ended';
} else if (this.video_.paused) {
updateState = 'paused';
}
const stateChanged = history.update(updateState);

Expand Down

0 comments on commit 200497f

Please sign in to comment.