Skip to content

Commit 7e6116f

Browse files
authored
fix: Fix isEnded when is not fullyLoaded (#7883)
1 parent a583c4a commit 7e6116f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/player.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8310,7 +8310,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
83108310
if (!this.video_ || this.video_.ended) {
83118311
return true;
83128312
}
8313-
return !this.isLive() && this.video_.currentTime >= this.seekRange().end;
8313+
return this.fullyLoaded_ && !this.isLive() &&
8314+
this.video_.currentTime >= this.seekRange().end;
83148315
}
83158316
};
83168317

0 commit comments

Comments
 (0)