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:
parent
80d7b5014a
commit
61eb54afa8
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user