1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-06 06:50:51 +02:00

Replaced webkitRequestFullScreen with webkitReplaceFullscreen

This commit is contained in:
michelt 2014-03-20 18:45:48 +01:00
parent 80d7b5014a
commit 61eb54afa8

View File

@ -1417,13 +1417,14 @@ vjs.Player.prototype.listenForUserActivity = function(){
if (document.mozCancelFullScreen) {
prefix = 'moz';
requestFS.isFullScreen = prefix + 'FullScreen';
requestFS.requestFn = prefix + 'RequestFullScreen';
} else {
prefix = 'webkit';
requestFS.isFullScreen = prefix + 'IsFullScreen';
requestFS.requestFn = prefix + 'RequestFullscreen';
}
if (div[prefix + 'RequestFullScreen']) {
requestFS.requestFn = prefix + 'RequestFullScreen';
requestFS.cancelFn = prefix + 'CancelFullScreen';
}
requestFS.eventName = prefix + 'fullscreenchange';