Jump to content

Requesting fullscreen from browser?


wprins

Recommended Posts

Is there a demo or can someone explain whether there's a UniGUI based way to request fullscreen mode from the browser (on login say)?  E.g using browser API as mentioned here:

https://davidwalsh.name/fullscreen

https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API

 

There seems to be some differences between how browsers handle this (sigh) which seems to be taken care of by the following library, apparently:

https://github.com/sindresorhus/screenfull.js/

 

 

 

 

Link to comment
Share on other sites

The generic usage of 3rd party js libs is following:

1) Add js file(s) into ServerModule.CustomFiles

2) Use UniSession.AddJS() to execute javascript code from within uni events

 

I don't see any reason why whis particular lib won't work this way.

  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...