mirror of
https://github.com/videojs/video.js.git
synced 2024-11-30 09:06:49 +02:00
Merge pull request #128 from rainboxx/patch-1
Changed checking whether fullscreen API is available or not. Firefox 9 ...
This commit is contained in:
commit
61aad619a8
@ -747,7 +747,7 @@ _V_.Player = _V_.Component.extend({
|
||||
|
||||
_V_.each(["moz", "webkit"], function(prefix){
|
||||
|
||||
if (document[prefix + "CancelFullScreen"] !== undefined) {
|
||||
if ((prefix != "moz" || document.mozFullScreenEnabled) && document[prefix + "CancelFullScreen"] !== undefined) {
|
||||
requestFn = prefix + "RequestFullScreen";
|
||||
cancelFn = prefix + "CancelFullScreen";
|
||||
eventName = prefix + "fullscreenchange";
|
||||
|
Loading…
Reference in New Issue
Block a user