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 authored Aug 21, 2024
1 parent 65e6681 commit f6be619
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 @@ -6622,10 +6622,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 f6be619

Please sign in to comment.