Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM runner / WebView #19

Open
gedw99 opened this issue Dec 7, 2024 · 9 comments
Open

WASM runner / WebView #19

gedw99 opened this issue Dec 7, 2024 · 9 comments

Comments

@gedw99
Copy link
Contributor

gedw99 commented Dec 7, 2024

I had some success, a while back , running the main panel as a WASM in a WebView. All golang if coatse.

the deck gio canvas ran fine there.

the file tree is the same on the left .

this is only so you can swap out the binary that runs in the main panel. I needed it because the schema varies and so the gui needs to be loaded as WASM .

If your interested we can make an example or something

the tabs on the top were gio native btw . So each view has side a tab is a WebView.

it also means you can phat video and other stuff which is hellish without a WebView

@gedw99 gedw99 changed the title WASM runner WASM runner / WebView Dec 7, 2024
@gedw99
Copy link
Contributor Author

gedw99 commented Dec 7, 2024

Here is the WebView :)

https://github.com/gioui-plugins/gio-plugins/tree/main/webviewer

the share and other ones are pretty useful with Gioview too I find

@oligo
Copy link
Owner

oligo commented Dec 7, 2024

Sure, that might deserve a dedicated project. You can post your goal and I'll contribute. I have played around with the webviewer a while ago. It worked pretty well except the layout does not play well with Gio's layout system.

@gedw99
Copy link
Contributor Author

gedw99 commented Dec 7, 2024

Yes I have it in another repo .

I never bothered to make it public because I figured no one would be into the idea .

when I get some time i will finish it and moist a link here

@oligo
Copy link
Owner

oligo commented Dec 7, 2024

I'm looking forward to it.

@gedw99
Copy link
Contributor Author

gedw99 commented Jan 26, 2025

Hey . Almost there . The gio plugins dev has been helping me .

It’s a bit tricky as it’s using a custom gio cmd so that url schemes and deeplinks work. So users have a Gioview file type , and so when they click the file extension it will open the web or native version .

Works on web, desktop and mobile . Opens a web version of the server ( WASM ) but the OS prompt is there to open the native app if they want.

Pretty cool :)

@gedw99
Copy link
Contributor Author

gedw99 commented Jan 26, 2025

I don’t think you have tested gio view for web ? The FS needs a VFS that if web goes and gets the file from the server

@oligo
Copy link
Owner

oligo commented Jan 26, 2025

Hey . Almost there . The gio plugins dev has been helping me .

It’s a bit tricky as it’s using a custom gio cmd so that url schemes and deeplinks work. So users have a Gioview file type , and so when they click the file extension it will open the web or native version .

Works on web, desktop and mobile . Opens a web version of the server ( WASM ) but the OS prompt is there to open the native app if they want.

Pretty cool :)

Yeah it's pretty cool! Have you make the deeplink work? Gioview has a custom scheme for its. view manager, that should be possible if you can handle deeplink.

@oligo
Copy link
Owner

oligo commented Jan 26, 2025

I don’t think you have tested gio view for web ? The FS needs a VFS that if web goes and gets the file from the server

Not much, it soon failed as there was no FS support in the web environment. I've been busy working on a new Gio based editor lib focused on code editing recently. The VFS support has always been in my mind but unfortunately I have no time working on it.

@gedw99
Copy link
Contributor Author

gedw99 commented Jan 26, 2025

Ok good to know .

Baby steps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants