actually use webkitRequestFullscreen
This commit is contained in:
parent
b0a9f6c02b
commit
7fb6fcea4a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
|
|||
function enterFullscreen(event) {
|
||||
video.removeEventListener('play', enterFullscreen);
|
||||
if (video.webkitRequestFullscreen) {
|
||||
video.requestFullscreen();
|
||||
video.webkitRequestFullscreen();
|
||||
} else {
|
||||
video.requestFullscreen().catch(err => {
|
||||
console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);
|
||||
|
|
Loading…
Reference in a new issue