gnome-ext-hanabi icon indicating copy to clipboard operation
gnome-ext-hanabi copied to clipboard

Add web renderer

Open jeffshee opened this issue 1 year ago • 6 comments

Description This is the meta thread for the progress of adding a web renderer to the Hanabi extension.

Progress

  • [ ] Add preference options for the web renderer to the prefs.js
  • [x] Integrate the build processes for gstcefsrc and gtk4paintablesink into meson
  • [ ] Test gstcefsrc with gtk4paintablesink and clappersink

Related works

  • #33
  • #78

jeffshee avatar Aug 05 '23 03:08 jeffshee

Im really interested into website (homeassistant) as wallpaper for gnome on wayland. web perfs are already merged. So i can just merge "Render for websites" locally, build it and it whould somwehow work? Proof of concept, so i dont mind if there would be some bugs or performance issues...

Just want to know if merging "Render for websites" is all i need to get it working. If not, what are we missing?

Thank you.

Gouster4 avatar Nov 30 '23 17:11 Gouster4

Hi @Gouster4

web perfs are already merged. So i can just merge "Render for websites" locally, build it and it whould somwehow work?

In short, no. The web perfs are just foundational work for the UI; the implementation for the web renderer is not there yet.

Just want to know if merging "Render for websites" is all i need to get it working.

That pull request was dropped because WebKitGtk4 had serious performance and stability issues. I'm not sure what the current state is, but I heard it's improving recently.

When considering webpage as live wallpaper, we have another promising method to consider. That's by using gstcefsrc, which is Chromium-based and has a higher affinity with Hanabi's implementation. I have made some attempts (see web-renderer branch) but still haven't got it working yet.

So, that's pretty much the current state for the web renderer. There are still things that need to be investigated and implemented, and we don't have enough manpower~

jeffshee avatar Dec 01 '23 14:12 jeffshee

@Gouster4

Im really interested into website (homeassistant) as wallpaper for gnome on wayland.

Just for reference, what's your use case (expected result)? Do you expect to be able to interact (with mouse/keyboard) with the website that you set as wallpaper? If yes, why?

jeffshee avatar Dec 01 '23 14:12 jeffshee

@Gouster4

Im really interested into website (homeassistant) as wallpaper for gnome on wayland.

Just for reference, what's your use case (expected result)? Do you expect to be able to interact (with mouse/keyboard) with the website that you set as wallpaper? If yes, why?

Just preview without interaction would be good. But live preview, not static image/screenshot. Interactive webpage would be even better. I use my server with gyroscopic remote control (keyboard+mouse) on all TVs in my house. I dont use desktop icons, just a simple gnome dock. And homeassistant dashboard as wallpaper would be awesome to keep an eye on whole house (including camera livestream widgets which i already have in homeassistant dashboard). If it would be interactive, even better.

Server is powerfull, so i dont mind any performance/optimalization issues, as i dont mind wasting some resources.

I am also ok with any bugs or lags... Still better then nothing.

Gouster4 avatar Dec 01 '23 15:12 Gouster4

Hi @Gouster4

web perfs are already merged. So i can just merge "Render for websites" locally, build it and it whould somwehow work?

In short, no. The web perfs are just foundational work for the UI; the implementation for the web renderer is not there yet.

Just want to know if merging "Render for websites" is all i need to get it working.

That pull request was dropped because WebKitGtk4 had serious performance and stability issues. I'm not sure what the current state is, but I heard it's improving recently.

When considering webpage as live wallpaper, we have another promising method to consider. That's by using gstcefsrc, which is Chromium-based and has a higher affinity with Hanabi's implementation. I have made some attempts (see web-renderer branch) but still haven't got it working yet.

So, that's pretty much the current state for the web renderer. There are still things that need to be investigated and implemented, and we don't have enough manpower~

So, web-render branch is attemp to use gstcefscr? But not working yet. Right?

I didnt found any other project that attemps to do this, so im waiting and hoping for best, as i dont have enought knowedgle to help with this project.

My problem is that im tied to wayland because of waydroid, and gnome because of extensions im using otherwise i would be able to use hidamari.

Gouster4 avatar Dec 01 '23 15:12 Gouster4

Ref: https://github.com/centricular/gstcefsrc/issues/80

jeffshee avatar Dec 01 '23 20:12 jeffshee