-
Notifications
You must be signed in to change notification settings - Fork 34
Not being able to share individual application window or different screen on X11 #1
Comments
This also applies to screens, the first one is always used and you can't change that. That is a limitation of QtWebEngine (afaik). I have tried and will continue to try to find a hack to implement this but it isn't trivial. |
Didn't know that was a limitation of QtWebEngine, do you have any links to Qt Bugtracker for this bug? |
This isn't documented really well and I only found it out by digging though the QtWebEngine source code (so I could also be wrong). But here are some relevant bugs: https://bugreports.qt.io/browse/QTBUG-80054 |
After researching a bit further, this could maybe be achieved using the org.freedesktop.portal.ScreenCast D-Bus API. I currently have no idea how that works, but it may be worth looking into that. |
So people can trace down more information about this issue.
readme: add issue #1 to 3rd known issue
Using screencast also should? make this wayland compatible. |
It should, but the problem right now is QtWebEngine itself can't capture anything else than the first screen (I tried screensharing with QuteBrowser and it had the same problem as this project) |
Fyi selecting a screen/window should now be possible on Wayland, still not on X11. |
On what version exactly? I tried AUR package right now, and people could only see black screen and no audio when streaming a game. |
To test it you would have to build manually on the master branch. Or you wait a few days until I release the changes. |
Ah I see, that version just hasn't been released yet. All clear now, thanks. |
I've built it manually now, but sadly people still see black screen, and no audio. |
To uninstall, run |
Thanks for the answer. I am on Arch Linux, so I have found a package in the AUR (https://aur.archlinux.org/packages/xdg-desktop-portal-gtk-git) for |
Just install it from the official repositories: https://archlinux.org/packages/extra/x86_64/xdg-desktop-portal-gtk/ |
Didn't know there was a package from official repo. It turns out I have it installed already. |
I've got screensharing to work with Wayland on latest master, however audio sharing seems to not work...
|
Damn, how come it works for you, but not for me? I've build it form source, selected the game from the list of open apps to stream, selected 720p 30fps quality, and started streaming. |
@BulletBlaster see #28 (comment) @Smoukus I'll see if I can find another fix |
@Smoukus I didn't stream any game, I've selected the entire desktop, I also think my issue was different - the screen/application sharing window didn't show up at all, but I fixed it by i think installing @maltejur I got it to work by following the steps in this comment, maybe add it to the README? |
Would you mind posting a screenshot of the window that lets you choose to select entire dekstop? I could only select specific apps, didn't see desktop anywhere. |
@Smoukus Are you using KDE Plasma? That window had a KDE icon, so I think it's not a part of the |
@Smoukus Just tested with a single window, works perfectly fine too, doesn't seem to matter whether I run it with |
I don't know how can I check with KDE Plasma because I am very new to Linux, and am afraid of messing things up. |
@Smoukus Also the window you're showing is for sharing sound, after it a screen sharing window should apppear Just installed GNOME and I seem to be having the same issue as you, I'll check in the Arch Wiki to see if something is misconfigured You're new to Linux and using Arch? How did you install it? Nothing should break if you have 2 DE's installed, you might see some errors but they're mostly meaningless, to install Plasma run |
Unfortunately that is the only window that I get. As soon as I choose the game in that window, stream starts, and I can't choose anything else. The only available option is to "end stream". I am on EndeavourOS, and that is basically Arch with an installer. |
Can confirm that this works on gnome wayland. I am just using the flatpak release and manually setting that variable. |
@Smoukus Please don't say in the future that you are using Arch, while Endeavour is based on it it's not the same distribution I also got screen sharing to work on GNOME, you need to install the |
Okay, will test it out with How is Endeavour different than Arch though? (I am genuinely curious) EDIT: EDIT2: can confirm that also the AUR Version works on Gnome Wayland with audio and screen. |
Oh damn, didn't realize there was a difference between |
I can confirm that sharing a screen or application windows now work for me with |
same |
Any progress on getting this working on X11? |
It seems there is some work happening in QtWebEngine: https://bugreports.qt.io/browse/QTBUG-112142 When/if that work is merged and released, I will probably be able to implement a window/screen selector for X11. |
Just a quick update, this has been merged and could make it into Qt 6.7 (Release date: 2024-03-19). So once Qt 6.7 is hopefully available on Arch in march/april, I'll start working on this feature. That date also coincides pretty nicely with the Plasma 6 release in february, so I'll be able to move the whole client to Qt 6. |
When you start screen share, it always share the whole desktop, and that isn't something everybody wants to.
The text was updated successfully, but these errors were encountered: