Skip to content

Commit 14da28d

Browse files
authoredJul 6, 2021
fix: remove loading spinner on ended (#7311)
If we've ended, there's no point in having the loading spinner. In addition, there are cases where we get a waiting event immediately before ended, and this works around that. Fixes videojs/http-streaming#1156
1 parent 508a424 commit 14da28d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/js/player.js

+1
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,7 @@ class Player extends Component {
18941894
*/
18951895
handleTechEnded_() {
18961896
this.addClass('vjs-ended');
1897+
this.removeClass('vjs-waiting');
18971898
if (this.options_.loop) {
18981899
this.currentTime(0);
18991900
this.play();

0 commit comments

Comments
 (0)
Please sign in to comment.