1
0
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:
Gary Katsevman 2021-07-06 15:42:43 -04:00 committed by GitHub
parent 508a424b02
commit 14da28dabe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();