Skip to content

Screen sharing

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

xdg-desktop-portal-wlr

Issues

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