TWebView() for Dummy

TWebView() for Dummy

Postby Jimmy » Wed Jul 13, 2022 2: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: Select all  Expand view
// 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 ?
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: TWebView() for Dummy

Postby Antonio Linares » Thu Jul 14, 2022 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TWebView() for Dummy

Postby Antonio Linares » Thu Jul 21, 2022 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TWebView() for Dummy

Postby Jimmy » Thu Jul 21, 2022 4:51 pm

hi Antonio,
Antonio Linares wrote:They answered on our open issue:

Basically we should execute this javascript code:

Code: Select all  Expand view
"document.querySelector('body').requestFullscreen()"

sorry i´m a total Dummy for Internet ...
"where" and "how" use that Javascript Code :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: TWebView() for Dummy

Postby Antonio Linares » Thu Jul 21, 2022 7:18 pm

Dear Jimmy,

First try I would propose is:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests