mirror of
https://github.com/videojs/video.js.git
synced 2025-01-04 06:48:49 +02:00
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
This commit is contained in:
parent
508a424b02
commit
14da28dabe
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user