FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TWebView() for Dummy
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
TWebView() for Dummy
Posted: Wed Jul 13, 2022 02:56 PM
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 (fw): Select all Collapse
// 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 :-)

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 ?
greeting,

Jimmy
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: TWebView() for Dummy
Posted: Thu Jul 14, 2022 06:50 PM

Dear Jimmy,

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

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: TWebView() for Dummy
Posted: Thu Jul 21, 2022 05:03 AM

Dear Jimmy,

They answered on our open issue:

Basically we should execute this javascript code:

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: TWebView() for Dummy
Posted: Thu Jul 21, 2022 04:51 PM
hi Antonio,
Antonio Linares wrote:They answered on our open issue:

Basically we should execute this javascript code:

Code (fw): Select all Collapse
"document.querySelector('body').requestFullscreen()"

sorry i´m a total Dummy for Internet ...
"where" and "how" use that Javascript Code :-)
greeting,

Jimmy
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: TWebView() for Dummy
Posted: Thu Jul 21, 2022 07:18 PM

Dear Jimmy,

First try I would propose is:

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

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion