Skip to content

Commit

Permalink
fix: remove loading spinner on ended (#7311)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gkatsev committed Jul 6, 2021
1 parent 508a424 commit 14da28d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/player.js
Expand Up @@ -1894,6 +1894,7 @@ class Player extends Component {
*/
handleTechEnded_() {
this.addClass('vjs-ended');
this.removeClass('vjs-waiting');
if (this.options_.loop) {
this.currentTime(0);
this.play();
Expand Down

0 comments on commit 14da28d

Please sign in to comment.