-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
vesktop: add webrtc support on wayland #321710
Conversation
Result of 1 package built:
|
Perhaps Additionally I think a |
Is this to "screen share" that recently introduced pipewire camera output? Because if it has something to do with camera selection, I'm not sure if this will work on any discord client. See issues like this |
I don't think this is on by default as most of my programs still use the v4l2l backend. I'd love that feature to be easily addable by the override you mentioned, but with something like vesktop I believe the defaults should work for the most naive user. I will test if this work without having to enable anything and let you know. |
Related: feature request |
It seems that feature is not implemented yet and Vesktop itself only uses these flags which is equivalent to my PR. I suggest not adding anything extra until the Vesktop devs add it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm a bit confused here. what exactly does this flag solve? from my testing, both audio and video sharing work perfectly fine without this - as intended through venmic. is this not the case for you?
in any case, the commit message should also be changed. this does not "add webrtc support". webrtc is already enabled by default for this build of electron, and this flag doesn't enable it
On wayland this is necessary or screen share will not work. As mentioned above the vesktop flatpak also enables this on ozone. I have changed the commit message to better explain this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screensharing now properly works on Wayland with Pipewire, approved.
I've been streaming things with Vesktop on Plasma 6 Wayland and it's always worked fine. Can you share more info on what you mean by WebRTC & screensharing not working? |
I've been using Vesktop for several months now without this flag on SwayWM, and I've had no issues screensharing and using WebRTC. What problem is this PR solving? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On wayland this is necessary or screen share will not work
as reported by others here and through my own testing, this doesn't seem to be the case. this should be handled by venmic - not electron directly - and it has been supported for months. this PR doesn't seem to be actually fixing anything
as mentioned above the vesktop flatpak also enables this on ozone.
could you send a link to this? reading your previous comments, you don't actually mention this anywhere. the closest is a link you provided to the .env.example in the upstream repo here, but the --enable-webrtc-pipewire-capturer
flag from there doesn't seem to be used in the flatpak (you can search for it here) and the WebRTCPipeWireCapturer
flag you're adding here isn't either (search results)
I have changed the commit message to better explain this
the commit message still doesn't explain this at all. the only change you made is adding "on wayland", but once again webrtc has always worked. this is enabling the webrtc pipewire capturer
Well it doesn't work for me and this PR solves it, I apologize for making assumptions about the Flatpak.
To me, this all seems like venmic may be crashing. All this does not happen when enabling the Flag in my PR. Should I make an issue instead? I can do with an overlay for now. |
Also, it seems like here vesktop uses the environment variable |
Scratch this. I can not reproduce the error anymore. Vesktop works without setting the flag now and I think I get what you meant with electron not being involved in screen sharing. Unfortunately, we will never find out why I had that issue, and now I don't. Maybe something like my external monitors or my docking station being wonky. I will close this PR and reopen if I can reproduce this again. I apologize for the commotion. |
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.