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
Add support for screensharing in gamescope using the gamescope pipewire video source. #480
Comments
I'd like to add enhancements where possible, but I'm lacking an understanding of this issue. |
And also please specify how we can reproduce it. |
Gamescope is a wayland compositor that runs by itself when it is not being launched from another compositor. It does not support a portal capture at the moment and only has the pipewire output. The problem is that this is the main compositor for the Steam Deck's game mode, which means the only way to capture video in the Steam Deck's game mode of a game is to use the pipewire output. |
ah, i see |
I believe for achieving this we can use org.freedesktop.portal.ScreenCast.OpenPipeWireRemote DBus call. |
As far as I know you can have multiple implementations of the same portal exposed via dbus. So, maybe this could be fixed by having an xdg-desktop-portal implementation for gamescope, thus this being an issue for upstream gamescope? |
Unfortunately gamescope has no plans to implement/support the xdg-desktop-portal, if you can convince them otherwise more power to you. |
Then it's not going to be done because screensharing in Electron relies on desktop portals. It would be easier for them to implement it than for anyone to attempt to hack support into Electron. |
Uh... electron already has support for pipewire sources as camera feeds, the problem is that it specifically filters out any source not marked as a "camera". |
Describe the solution you'd like.
If we can consume the gamescope:out_0 pipewire video source we can use that for screensharing under gamescope.
The text was updated successfully, but these errors were encountered: