Re:Bananas: Cross-Platform screen sharing made simple
by Arnavion on Thursday November 28, 2024 @10:49PM
(#42270627)
It's "just" using Electron's built-in screencasting capability (`desktopCapturer`), and Electron supports both X11 screencasting and the xdg-desktop-portal+pipewire approach used by Wayland compositors.
[ Parent
| on HN ]
Re:Bananas: Cross-Platform screen sharing made simple
by GorillaMoe on Thursday November 28, 2024 @11:46PM
(#42270892)
Yes, that's right. But tbh, getting Mediastream in Electron can be done by a 5y old.
Re:Bananas: Cross-Platform screen sharing made simple
by zamalek on Friday November 29, 2024 @01:28AM
(#42271408)
If you're using a recent Electron. Nearly everything (Discord, Slack, you name it) does not. This is all from memory, but I believe Wayland was "fixed" in Electron 19, but with a showstopper bug that was never backported. Many Electron apps are on 18 to this day.
Re:Bananas: Cross-Platform screen sharing made simple
by GorillaMoe on Friday November 29, 2024 @04:40AM
(#42272585)
Yes, I was just triggered by the "just" somehow :( it is not the hard part that I was trying to solve. The hard part is the UX/UI and the WebRTC part itself.
Re:Bananas: Cross-Platform screen sharing made simple
by Arnavion on Friday November 29, 2024 @03:28PM
(#42276841)
I believe you interpreted it exactly the opposite of what I wanted. I put "just" in quotes precisely to make the point that that there's a lot more to your application than getting the screencast buffer.