Use scap library to implement screensharing on X11 (#27807)

While `scap` does have support for Wayland and Windows, but haven't seen
screensharing work properly there yet. So for now just adding support
for X11 screensharing.

WIP branches for enabling wayland and windows support:

* https://github.com/zed-industries/zed/tree/wayland-screenshare
* https://github.com/zed-industries/zed/tree/windows-screenshare


Release Notes:

- Added support for screensharing on X11 (Linux)

---------

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Junkui Zhang <364772080@qq.com>
This commit is contained in:
Michael Sloan 2025-04-04 15:31:03 -06:00 committed by GitHub
parent 7bc62de267
commit c2afc2271b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 624 additions and 49 deletions

View file

@ -28,6 +28,7 @@ if [[ -n $apt ]]; then
libasound2-dev
libfontconfig-dev
libwayland-dev
libx11-xcb-dev
libxkbcommon-x11-dev
libssl-dev
libzstd-dev
@ -76,6 +77,7 @@ if [[ -n $dnf ]] || [[ -n $yum ]]; then
alsa-lib-devel
fontconfig-devel
wayland-devel
libxcb-devel
libxkbcommon-x11-devel
openssl-devel
libzstd-devel
@ -144,6 +146,7 @@ if [[ -n $zyp ]]; then
gzip
jq
libvulkan1
libxcb-devel
libxkbcommon-devel
libxkbcommon-x11-devel
libzstd-devel
@ -174,6 +177,7 @@ if [[ -n $pacman ]]; then
fontconfig
wayland
libgit2
libxcb
libxkbcommon-x11
openbsd-netcat
openssl