mirror of
https://github.com/videojs/video.js.git
synced 2025-03-03 15:12:49 +02:00
- Bind hide on ended event to resolve issue #1028.
- Remove duplicate seeked event line.
This commit is contained in:
parent
e7b1098563
commit
378d6ef482
@ -15,8 +15,6 @@ vjs.LoadingSpinner = vjs.Component.extend({
|
||||
player.on('canplay', vjs.bind(this, this.hide));
|
||||
player.on('canplaythrough', vjs.bind(this, this.hide));
|
||||
player.on('playing', vjs.bind(this, this.hide));
|
||||
player.on('seeked', vjs.bind(this, this.hide));
|
||||
|
||||
player.on('seeking', vjs.bind(this, this.show));
|
||||
|
||||
// in some browsers seeking does not trigger the 'playing' event,
|
||||
@ -25,6 +23,7 @@ vjs.LoadingSpinner = vjs.Component.extend({
|
||||
player.on('seeked', vjs.bind(this, this.hide));
|
||||
|
||||
player.on('error', vjs.bind(this, this.show));
|
||||
player.on('ended', vjs.bind(this, this.hide));
|
||||
|
||||
// Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
|
||||
// Checked in Chrome 16 and Safari 5.1.2. http://help.videojs.com/discussions/problems/883-why-is-the-download-progress-showing
|
||||
|
Loading…
x
Reference in New Issue
Block a user