WebGadget Extensions (PB v6.xx GTK3)

Linux specific forum
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

Update v1.06.3
- Bugfix: Forgot some 'ProcedureC' for callback
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
pamen
Enthusiast
Enthusiast
Posts: 173
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by pamen »

Hi mk-soft!
this is and excellent replacement, I do have though one issue:
Linux (Ubuntu 20.04) ASM backend.

When loading web pages with active javascript content I get only navigation errors on javascript.void('ProcedureName') - so nothing really works.
Javascript is enabled in this case (if it is not the page would not load, but it does)
How to reproduce:
download simplest version of ckeditor 4
hardcode in WebGadgetExSample to load the index.html from the sample folder.

All loads just fine, buttons are actively colored on change of cursor position, but any click on any function causes javascript navigation error and does not execute.

The same exactly page works in standard PB6 LTS web gadget.
My problem is that you coded great javascript access, which is indispensable to interact with the page, so standard webgadget is not useful, even if it works fine.

Am I just missing some WebkitEx setting?
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

Without the html java code I cannot understand what the problem is.

This example works ...
https://www.w3docs.com/snippets/html/ho ... -html.html
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
pamen
Enthusiast
Enthusiast
Posts: 173
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by pamen »

Sample is in
https://seafile.mandalian.net/f/646a774 ... 80ca/?dl=1
Link expires in 2 days.

To see the problem:
change the initial URL (file:///home(...)) on load of the WebGadget to correct directory on your Linux OS.

Run, click on any button in the editor.

Thank you / vielen Dank mk-soft
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

I had a look at it.

The WebGadget uses the libwebkit2gtk WebKitWebView.
I haven't found out how to implement a file:/// uri with base_uri. I guess WebGadget doesn't support it at the moment. If I load your folder on my WebServer and then open it in WebGadget, this works.
I don't know how browsers like Firefox do it.

Please post a new request in the Linux forum on how to solve this. Maybe someone knows something.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by skinkairewalker »

I tested this link in the webview, as much as the browser supports webgl, the browser bugs on try load this link: https://soqueto.com/game3/
is there any way to solve it?
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

Here it runs under Minz Linux LMDE 5.
Maybe something else needs to be installed:

Developer Libraries For Games
-----------------------------
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by skinkairewalker »

it didn't work... there must be something missing.
when I try to load this link, it is necessary to restart the application because it simply stops loading any pages

*note:I'm using parallels desktop to virtualize ubuntu on MacBook Air M1.
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

I am using Parallels v18 on Mac Mini 2018 (Intel).

Which Ubuntu (Arm) is used ?
On Raspberry it runs but reacts too slow to the keyboard
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by skinkairewalker »

mk-soft wrote: Sat May 13, 2023 9:44 pm Which Ubuntu (Arm) is used ?
22.04
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.00 GTK3)

Post by mk-soft »

Update v1.06.4
- Added WebKit_SetAcceleration(Gadget, Policy)

Since the webkit2 hardware acceleration does not work under Raspberry BookWorm,
you can disable it with the policy #WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.xx GTK3)

Post by mk-soft »

Update v1.06.6
- Added WebViewGadget
- Optimize Java Result

Now also works with the new WebViewGadget from PB v6.10 ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: WebGadget Extensions (PB v6.xx GTK3)

Post by skinkairewalker »

Is it possible to use a microphone?

screenshot : https://prnt.sc/TY1bX4vp0Nn3
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.xx GTK3)

Post by mk-soft »

I have found something, but I have to create the right callback for it first ...
Takes a little time.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: WebGadget Extensions (PB v6.xx GTK3)

Post by mk-soft »

Update v1.06.7
- Added Settings Get/SetProperty
- Added SetPermissionCallback
- Update Example

With SetPermissionCallback is now possible to use microphone and more.
See new example :wink:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply