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