1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-17 21:18:27 +02:00

fix for loading spinner persisting on screen after programatic seek in Chrome

This commit is contained in:
Dan Connor 2012-11-06 16:38:35 -08:00
parent f82312e5fb
commit 180c75b3a2

8
src/controls.js vendored
View File

@ -239,6 +239,12 @@ _V_.LoadingSpinner = _V_.Component.extend({
player.addEvent("playing", _V_.proxy(this, this.hide));
player.addEvent("seeking", _V_.proxy(this, this.show));
// in some browsers seeking does not trigger the 'playing' event,
// so we also need to trap 'seeked' if we are going to set a
// 'seeking' event
player.addEvent("seeked", _V_.proxy(this, this.hide));
player.addEvent("error", _V_.proxy(this, this.show));
// Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
@ -843,4 +849,4 @@ _V_.MenuItem = _V_.Button.extend({
}
}
});
});