1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-13 01:30:17 +02:00

Updated api and setup docs

This commit is contained in:
Steve Heffernan
2012-01-05 23:25:09 -08:00
parent 9678c7717f
commit 7ef5b15ae2
22 changed files with 477 additions and 601 deletions

10
src/controls.js vendored
View File

@ -28,8 +28,6 @@ _V_.Button = _V_.Control.extend({
role: "button",
tabIndex: 0
}, attrs);
_V_.log(attrs)
return this._super(type, attrs);
},
@ -143,9 +141,9 @@ _V_.FullscreenToggle = _V_.Button.extend({
onClick: function(){
if (!this.player.videoIsFullScreen) {
this.player.enterFullScreen();
this.player.requestFullScreen();
} else {
this.player.exitFullScreen();
this.player.cancelFullScreen();
}
}
@ -717,6 +715,10 @@ _V_.Poster = _V_.Button.extend({
init: function(player, options){
this._super(player, options);
if (!this.player.options.poster) {
this.hide();
}
player.addEvent("play", _V_.proxy(this, this.hide));
},