-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Render for websites [Proof of Concept,Working] #33
Conversation
Hi @josephm1, Based on my experience with Hidamari (another live wallpaper app) though, I don't think that using WebKitGTK is a good choice here. Its graphic implementation is totally unusable. There are 2 alternative solutions which I haven't explored much yet:
Please tell me if you have any ideas~ Again I appreciate your contribution! |
There is a GStreamer element that is supposed to do that (haven't tried it myself): https://github.com/centricular/gstcefsrc. With it installed on the system, you should be able to simply set URI (like you normally do in your current code) to |
Hi @jeffshee @Rafostar , I tried the chromium embedded framework and different alternatives like trying to get a headless chrome/Firefox to stream its content to display, but I was not able to get anything to work reliably and to be performant. I know gnome web (Epiphany) has not been reliable or performant in the past, however it has improved considerably, especially since its recent updates. I just tested it there it appears to be comparable in speed to chrome on Linux, currently using Shader Toy as a benchmark. I am just wondering if you think it might be suitable to use now? |
@josephm1 |
It was a while ago so I'm not 100% certain. I believe I was not able to get Gstreamer plugin to work at all but I had some success with just getting websites to display using Spotify's CEF but it was not clear to me how to link to GTK and then I tried the python bindings (which are no longer maintained) which often crashed on my laptop any time it did manage to work. Again though, I wouldn't have had any experience with these technologies before so there may have been something simple I was not doing. |
Works with
Also,
@Rafostar No luck with
@josephm1 I don't have much faith for Epiphany, at least atm. I have the latest technology preview (flatpak) installed on my system, the webpage does load, but it doesn't show anything (not even Google homepage lol!). Well, I think it's mostly because I have an Nvidia GPU... 😔 EDIT: Mistake in first command |
@josephm1, how about implementing the Preferences Dialog (prefs.js)? It will be essential for users to set the URL or choose the local HTML file later on. If you're up for it, I'll handle the gstcefsrc integration. We can even discuss this on Discord if that's easier to have a conversation. (Maybe a Discord server so that everyone can exchange opinion...?) Let me know your thoughts. 😄 |
Theres probably some deadlock. Will probably need to investigate with
What integration you are speaking about? All you need is some dialog to enter to URL ( |
I don't have any experience with
Will try to add codes to meson that build the plugins from sources, as these plugins aren't available out of the box. Probably will also need to configure
Hmm, is it that straightforward? I thought I have to do something with the pipeline. |
Ah, then probably not from GJS. It will be tricky to change them from GstPlay, but even if you build a manual pipeline I imagine you will run into all kinds of issues when you will try to control it by connecting to its signals. Like signals not being emitted or some other deadlocks or crashes. |
1f6a675
to
069ae56
Compare
Hi Jeff, I am writing to request that you consider adding a web renderer for Hanabi as a feature in your extension. I have included a working example of the web renderer. As a newcomer to Gnome JavaScript, I am not familiar with the best practices for integrating this feature into the rest of your extension. I appreciate the excellent work you have done so far and hope that you will consider adding this feature. If you have any questions let me know. Thanks and best wishes!