TWebView() for Dummy

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

TWebView() for Dummy

Post 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 ?
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: TWebView() for Dummy

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: TWebView() for Dummy

Post by Antonio Linares »

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
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: TWebView() for Dummy

Post 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 :?:
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: TWebView() for Dummy

Post by Antonio Linares »

Dear Jimmy,

First try I would propose is:

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

Antonio Linares
www.fivetechsoft.com
Post Reply