1
0
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:
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){
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));

View File

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