Screen sharing
- https://www.reddit.com/r/swaywm/comments/ev3ty6/does_anyone_know_a_workaround_to_share_screen_in/
- https://www.reddit.com/r/swaywm/comments/fq1qoe/how_to_use_xdgdesktopportalwlr_to_share_the_screen/
- Arch wiki: PipeWire/WebRTC screen sharing
- Mozilla webrtc test page
- webrtc.github.io
- https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility#obs-xdg-portal
Tools
Jitsi
Issues with fake loopback video screencast:
Server tools
Screego
screen sharing for developers
Not sure if it works with wayland .. ?
xdg-desktop-portal
Test (run all cmds in different terminals to watch the output):
systemctl --user stop xdg-desktop-portal-wlr.service
systemctl --user stop xdg-desktop-portal.service
systemctl --user stop xdg-desktop-portal-gtk.service
ps aux | grep xdg-des
/usr/local/libexec/xdg-desktop-portal-wlr -l DEBUG
/usr/local/libexec/xdg-desktop-portal-gtk --verbose -r
/usr/local/libexec/xdg-desktop-portal --verbose -r
journalctl -f
Fake screensharing using video loopback
https://wiki.archlinux.org/index.php/Screen_capture#Via_a_virtual_webcam_video_feed
Best solution so far!
screenshare.sh
And then use chromium instead of firefox (see more details below)
Native Screensharing
- Arch wiki: WebRTC screen sharing
- Make screen sharing on wayland (sway) work!
- Chromium: Use
enable-webrtc-pipewire-capturerflag - Arch wiki: Zoom Meetings
xdg-desktop-portal-wlr
Issues
- Screen share broken in the latest chromium-based browsers (v112)
- Happened 2023-04 with
xdg-desktop-portal-wlr0.6.0-1andchromium112.0.5615.165-1 - Workaround until a new release of
xdg-desktop-portal-wlris shipped in Arch: Installxdg-desktop-portal-wlr-git(v0.3.0.r15.gefcbcb6-1fixed it!)
- Happened 2023-04 with
Browser notes
https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility
Firefox
- Mozilla webrtc gum page cuts the borders of the fake screencast video stream - but the same stream displays fine in chromium (88).
- In jitsi the image is also cropped, and has a very bad resolution → Use chromium for now
Chromium
Ubuntu snap uses X11, not wayland
https://bugs.chromium.org/p/chromium/issues/detail?id=682122 https://fhackts.wordpress.com/2019/07/08/enabling-webrtc-desktop-sharing-under-wayland/
The only solution is to use wf-recorder (see below).
run chrome in wayland mode:
chrome --enable-features=UseOzonePlatform --ozone-platform=wayland
Deprecated / Stale
- Mon2Cam: Archived