diff --git a/src/js/player.js b/src/js/player.js index 40f5797050..508f43567a 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -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]) {