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:
10
src/controls.js
vendored
10
src/controls.js
vendored
@ -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));
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user