Jump to content

Recommended Posts

Posted

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/

 

 

 

 

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...