Webcam
August 8, 2026 ยท View on GitHub
This feature allows client webcams attached to be exposed to the applications running on the server.
The webcam is not forwarded by default unless the webcam command line option enabled, or the webcam is activated manually from the system tray menu.
Clients use a platform capture backend: DirectShow on MS Windows, AVFoundation on MacOS, and [libcamera](https://libcamera.org/) on Linux.The server side is only supported on Linux. It relies on a virtual video device, you must install the v4l2loopback kernel module from and load it:
modprobe v4l2loopback devices=1 exclusive_caps=0
Some distributions may load the module with the wrong setting: exclusive_caps=1 (ie: Ubuntu, see #1596)
The user running the xpra session must be able to access the video devices (ie: usually requires adding the user to the video group)
You can enable the webcam from the client's system tray menu, or using the command line option webcam=on, you can also specify which video device to forward on the command line --webcam=/dev/video2.
For further reference, see the webcam subsystem.
Diagnostics
- use the
-d webcamdebug logging flag - run
xpra webcam-infoon the server to locate the virtual video devices:Found 1 virtual video device: /dev/video1 - run
xpra webcamon the client to run the webcam capture test application (akaWebcam_Teston MS Windows and MacOS).