A few weeks a go discord on linux had an update that enabled you to do screensharing on wayland even with audio.
There are a few bugs. For example, you can not change the window and sometimes have to reactivate the audio check box to have the audio work. Sadly the flatpak could not shit that update, because the chromium version shipped has to major bugs in flatpaks (issue).
But the stable .deb has now working screen sharing with audio. That is something that x11 does not have.
Because it’s had stellar Wayland streaming support (with audio) for somewhere around 2 years at this point, is still way better in that regard than native Discord, and has a thriving plugin suite that lets you enjoy features the native app will never allow.
I’ve had some luck with vesktop’s streaming but it just doesn’t work for me half the time and I have to fully restart it to fix it. I’ll go through the flow and click to start streaming and nothing will happen. With the latest update for regular discord it will always stream but has had issues with switching windows/audio not always working.
Guess we’ll get there eventually.
Switching Windows never works for me. When the audio does not work, I can always fix it by double toggeling the audio button/checkbox.