diff --git a/app/static/js/film.js b/app/static/js/film.js index 570caff..d992d1e 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -30,10 +30,14 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { video.currentTime = continueTimecode } function enterFullscreen(event) { - video.requestFullscreen().catch(err => { - console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`); - video.remove() - }); + if (video.webkitEnterFullScreen) { + video.webkitEnterFullScreen(); + } else { + video.requestFullscreen().catch(err => { + console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`); + video.remove() + }); + } video.removeEventListener('play', enterFullscreen); setTimeout(() => { video.style.display = 'block'