Skip to content

Commit

Permalink
Attempt to fix issue videojs#673 on the main video.js page. Most cred…
Browse files Browse the repository at this point in the history
…it to github user @jewel for the code changes. I just rearranged to fix minified generation, though this is another issue to look into.
  • Loading branch information
mattvaughan committed Apr 18, 2014
1 parent 3bafdee commit 42947ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1433,16 +1433,22 @@ vjs.Player.prototype.listenForUserActivity = function(){
if (document.mozCancelFullScreen) {
prefix = 'moz';
requestFS.isFullScreen = prefix + 'FullScreen';
} else {
requestFS.eventName = prefix + 'fullscreenchange';
} else if (document.webkitExitFullscreen) {
prefix = 'webkit';
requestFS.isFullScreen = prefix + 'IsFullScreen';
requestFS.eventName = prefix + 'fullscreenchange';
} else {
requestFS.cancelFn = 'msExitFullscreen';
requestFS.isFullScreen = 'msFullscreenElement';
requestFS.requestFn = 'msRequestFullscreen';
requestFS.eventName = 'MSFullscreenChange';
}

if (div[prefix + 'RequestFullScreen']) {
requestFS.requestFn = prefix + 'RequestFullScreen';
requestFS.cancelFn = prefix + 'CancelFullScreen';
}
requestFS.eventName = prefix + 'fullscreenchange';
}

if (document[requestFS.cancelFn]) {
Expand Down

0 comments on commit 42947ee

Please # to comment.