Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EO WebBrowser fullscreen mode from c# Options
Eurice
Posted: Wednesday, September 12, 2018 10:50:02 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 95
Hello guys,

I'm trying to get EO WebBrowser going full screen mode from c# calls.
I first tryed by calling QueueScriptCall("document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);");

(this JS is valid and working if I call it directly from debugger console)


=> this doesn't work because chrome prevent websites going full screen without user interaction.
In console it writes a warning :

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


Do you guys plan to add a method in webview class to go fullScreen ?

Any workaround available ?
Any chrome flags that I could activate ?

Thanks, best regards


eo_support
Posted: Wednesday, September 12, 2018 12:13:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
Hi,

No. We do not have any plan to change this behavior. Full screen mode can only be triggered from user interaction. You can only programmatically exit full screen.

If you want your web page to be full screen initially, you can have your WebView full screen instead. This way the web page itself still runs in normal non-full screen mode. But because the container UI is full screen, the finally result is still full screen.

Thanks!
Eurice
Posted: Thursday, September 13, 2018 7:09:47 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 95
Hello,

I've created a workaround, thanks for the answer.

Topic close,


Regards
eo_support
Posted: Thursday, September 13, 2018 8:54:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
Great. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.