1
0
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:
Steve Heffernan
2011-12-21 18:15:47 -08:00
parent 82142e2f54
commit accdfcb02c
2 changed files with 2 additions and 7 deletions

3
src/controls.js vendored
View File

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

View File

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