mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Cleaned up spinner code.
This commit is contained in:
parent
82142e2f54
commit
accdfcb02c
3
src/controls.js
vendored
3
src/controls.js
vendored
@ -177,9 +177,6 @@ _V_.LoadingSpinner = _V_.Component.extend({
|
||||
init: function(player, options){
|
||||
this._super(player, options);
|
||||
|
||||
// player.addEvent("play", _V_.proxy(this, this.hide));
|
||||
// player.addEvent("ended", _V_.proxy(this, this.show));
|
||||
|
||||
player.addEvent("canplay", _V_.proxy(this, this.hide));
|
||||
player.addEvent("canplaythrough", _V_.proxy(this, this.hide));
|
||||
player.addEvent("playing", _V_.proxy(this, this.hide));
|
||||
|
@ -452,13 +452,11 @@ _V_.Player.prototype.extend({
|
||||
this.videoIsFullScreen = true;
|
||||
if (typeof this.el.webkitRequestFullScreen == 'function') {
|
||||
this.el.webkitRequestFullScreen();
|
||||
// } else if (typeof this.el.mozRequestFullScreen == 'function') {
|
||||
// _V_.log("here")
|
||||
// this.el.mozRequestFullScreen();
|
||||
} else if (typeof this.el.mozRequestFullScreen == 'function') {
|
||||
this.el.mozRequestFullScreen();
|
||||
} else if (this.supportsFullScreen()) {
|
||||
this.apiCall("enterFullScreen");
|
||||
} else {
|
||||
_V_.log("2")
|
||||
this.enterFullWindow();
|
||||
}
|
||||
this.triggerEvent("enterFullScreen");
|
||||
|
Loading…
Reference in New Issue
Block a user