forked from 0x2620/oxjs
trigger setSizes in VideoPlayer on Ox.Fullscreen, add Ox.Fullscreen.available to check if fullscreen support is present(i.e. in iframe)
This commit is contained in:
parent
251fe64350
commit
b20d6a6e59
2 changed files with 12 additions and 1 deletions
|
|
@ -85,6 +85,10 @@ Ox.Fullscreen = (function() {
|
|||
});
|
||||
}
|
||||
|
||||
that.available = document.fullscreenEnabled
|
||||
|| document.webkitFullscreenEnabled
|
||||
|| document.mozFullScreenEnabled || false;
|
||||
|
||||
that.bind = function(event, handler) {
|
||||
bind(event, handler);
|
||||
};
|
||||
|
|
@ -136,4 +140,4 @@ Ox.Fullscreen = (function() {
|
|||
|
||||
return that;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue