Unfortunately the requestFullscreen() JS method must be called from an 
input event handler, so some sort of user interaction would still be 
required. Only 'soft fullscreen' (stretching the canvas to the available 
browser window client-rect) would work without user-interaction. Best is to 
use the emscripten Fullscreen API wrapper functions for better 'fine 
control': 
https://kripken.github.io/emscripten-site/docs/api_reference/html5.h.html#fullscreen

-Floh.

Am Dienstag, 12. September 2017 01:13:17 UTC+8 schrieb Bram Stolk:
>
> Hi,
>
> After building with emscripten, the default shell.html adds a "Full 
> Screen" button.
> Would it be possible to have the HTML page go in full screen, immediately 
> after loading, without the user having to click the "Fullscreen" button?
>
> Thanks!
>
>   bram
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to