Hacker News new | ask | show | jobs
by nckh 1069 days ago
Can you please elaborate what do you mean by "script-driven fullscreen mode"? Does any other iOS browser have such feature?
1 comments

So the problem is that the "user gestures" break any JS that attempts to engage or disgage fullscreen on a video object.

Imagine!!! ...there eixsts an app that implements a playlist using video objects (.mp4s). This app will NOT be able to engage/disengage fullscreen in Chrome/Edge without some serious hacks.

Potential solution: - Simply implement a brower setting that enables/disables user-gestures for specific URL(s).

Edge error: Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user-gesture.

MDN Docs fullscreen link: - https://developer.mozilla.org/en-US/docs/Web/API/Element/req... MDN Docs user gesture link: - https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A... MDN Docs gesture event link: - https://developer.mozilla.org/en-US/docs/Web/API/GestureEven... Stack Overflow Link: - https://stackoverflow.com/questions/27649264/run-chrome-in-f...

"Does any other iOS browser have such feature?" - Not to my knowledge?

Can you dig it?