Fullscreen questions #1155
Replies: 5 comments
-
the Question is about IP-TV or YouTube where you can click on Icon to get "Fullscreen" |
Beta Was this translation helpful? Give feedback.
-
It seems that the popup window created by // The code is in Kotlin but the logic is quite clear
WebviewKo().run {
size(800,600)
init("""
let w = window.open(''); // Open a new window in "full-featured" MS Edge Browser mode
w.document.write(`
// You HTML Content here
<html>
<body>
<button onclick="document.querySelector('body').requestFullscreen()"> fullscreen </button> // requestFullscreen here
</body>
</html>
`);
""")
navigate("about:blank")
show()
} Please notice that for "security", MS Edge does not allow entering fullscreen mode without user's interaction Tested: Windows 10 x64 Update: to pass the bind to new window: #800 (comment) |
Beta Was this translation helpful? Give feedback.
-
Why is that the case? What are the internals that prevent it from happening. Also, would binds work if they were defined before the application was fullscreen? Or do they just break whenever the webview goes fullscreen? |
Beta Was this translation helpful? Give feedback.
-
// The code is in Kotlin but I think it's easy to rewrite it in C/C++
WebviewKo(1).run {
bind("myBind") { // 1. bind a function called "myBind"
println(it)
"OK"
}
size(800,600)
init("""
let w = window.open('');
w.document.write(`
<html>
<body>
<button onclick="document.querySelector('body').requestFullscreen()"> fullscreen </button>
</body>
</html>
`);
w.myBind = myBind; // 2. Pass the binding function to new window
""".trimIndent())
navigate("about:blank")
start()
} Again, there's still some issues, for example, if you use // The code is in Kotlin but I think it's easy to rewrite it in C/C++
WebviewKo(1).run {
bind("myBind") {
println(it)
eval("""alert($it)""")
"OK"
}
size(800,600)
init("""
let w = window.open('');
w.document.write(`
<html>
<body>
<button onclick="document.querySelector('body').requestFullscreen()"> fullscreen </button>
<button onclick="myBind('Hello')">use bind</button>
</body>
</html>
`);
w.myBind = myBind;
""".trimIndent())
navigate("about:blank")
start()
} |
Beta Was this translation helpful? Give feedback.
-
Hi Carlos,
how do you (want) to use EDGE … with Xbase++ ?
about “Fullsreen” : I have ask same at #800
but I use FiveWin which have TWebView()
…. I have “read” that Tom got a new HTMLviewer() … using EDGE Engine …
neverless Xbase++ is still behind HMG or FiveWin which have EDGE-Engine since last Year
Jimmy
Von: Carlonn Rivers ***@***.***
Gesendet: Samstag, 1. Oktober 2022 06:24
An: webview/webview
Cc: Auge & Ohr; Comment
Betreff: Re: [webview/webview] Fullscreen questions (Issue #800)
@Winterreisender <https://github.com/Winterreisender>
Please notice that for "security", MS Edge does not allow entering fullscreen mode without user's interaction
And since it's more like a browser, webview_bind won't work in the fullscreen window, you need to make you bindings with HTTP or WebSocket like Neutralinojs <https://neutralino.js.org/>
Why is that the case? What are the internals that prevent it from happening.
Also, would binds work if they were defined before the application was fullscreen? Or do they just break whenever the webview goes fullscreen?
—
Reply to this email directly, view it on GitHub <#800 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEJKR4LS5YDJ2MC67UGVWLLWA64HRANCNFSM53TGQ6TQ> .
You are receiving this because you commented.Das Bild wurde vom Absender entfernt.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Dear Steffen, what would be the right way to turn webview into fullscreen and also how to get a notification about it ? Many thanks
Beta Was this translation helpful? Give feedback.
All reactions