turns out you can't use orientationchange
event on window
object like so
window.addEventListener("orientationchange", () => {
document.body.webkitRequestFullscreen()
});
you need to use change
event on screen.orientation
object
like this
screen.orientation.addEventListener('change', () => {
document.body.webkitRequestFullscreen()
});
ππππππ Magic Yay ππππππΒ
source: https://cdn1d-static-shared.phncdn.com/html5player/videoPlayer/html5/3.1.0/mhp1138.player.HTML5PlayerMobile.js gist: https://gist.github.com/thecotne/31e374d42c80d89a244b9da24012d39b