Skip to content

Commit a1b2859

Browse files
aveladjoeyparrish
authored andcommitted
fix: Fix isEnded when is not fullyLoaded (#7883)
1 parent ba0658a commit a1b2859

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/player.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7542,7 +7542,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
75427542
if (!this.video_ || this.video_.ended) {
75437543
return true;
75447544
}
7545-
return !this.isLive() && this.video_.currentTime >= this.seekRange().end;
7545+
return this.fullyLoaded_ && !this.isLive() &&
7546+
this.video_.currentTime >= this.seekRange().end;
75467547
}
75477548
};
75487549

0 commit comments

Comments
 (0)