Page 1 of 1

TWebView() for Dummy

Posted: Wed Jul 13, 2022 2:56 pm
by Jimmy
hi,

when watch IP-TV using TWebView() it want to use "Full-Screen"

i can use Maximize() but Result "seems" not to have same Quality like in EDGE
it "seems" like Scale-Up small Video ...

in Source of c:\fwh\source\classes\twebview.prg there are DEFINE

Code: Select all | Expand

// Window size hints
#define WEBVIEW_HINT_NONE  0  // Width and height are default size
#define WEBVIEW_HINT_MIN   1  // Width and height are minimum bounds
#define WEBVIEW_HINT_MAX   2  // Width and height are maximum bounds
#define WEBVIEW_HINT_FIXED 3  // Window size can not be changed by a user

but i can´t find a Sample how to use it :?:

---

on Website https://www.joyn.de/ there is a Icon for "Full-Screen" when watch IP-TV
i can use Keyboard "f" to "switch" and see it on Website switching

but it does not react when DblClick on it ... what does it mean ... no Idea :idea:

sorry i´m a total Internet Technique Dummy to ask it

---

i like to use TWebview() instead of my old IE Webbrowser Interface ( c:\Windows\System32\ieframe.dll )

but how to get Property like "FullScreen" from TWebview() ?
also i like to get "OnFullScreen" Event, how ?

Re: TWebView() for Dummy

Posted: Thu Jul 14, 2022 6:50 pm
by Antonio Linares
Dear Jimmy,

I just opened an issue in the official webview repo asking about it

https://github.com/webview/webview/issues/800

Re: TWebView() for Dummy

Posted: Thu Jul 21, 2022 5:03 am
by Antonio Linares
Dear Jimmy,

They answered on our open issue:

Basically we should execute this javascript code:

"document.querySelector('body').requestFullscreen()"

Re: TWebView() for Dummy

Posted: Thu Jul 21, 2022 4:51 pm
by Jimmy
hi Antonio,
Antonio Linares wrote:They answered on our open issue:

Basically we should execute this javascript code:

Code: Select all | Expand

"document.querySelector('body').requestFullscreen()"

sorry i´m a total Dummy for Internet ...
"where" and "how" use that Javascript Code :?:

Re: TWebView() for Dummy

Posted: Thu Jul 21, 2022 7:18 pm
by Antonio Linares
Dear Jimmy,

First try I would propose is:

oWebView:Eval( "document.querySelector('body').requestFullscreen()" )