For usage related information, see webcam feature.
| Component | Link | |-------------------|--------------------------------------------------------------------------------------------------------| | client | xpra.client.mixins.webcam | | client connection | xpra.server.source.webcam | | server | xpra.server.mixins.webcam |
The client exposes a single webcam boolean
capability.
The server exposes the following attributes using the
webcam capability prefix:
enabled booleanencodings list of strings - encodings supported: only
png or jpeg are guaranteed to be
supporteddevices integer - the number of virtual video devices
available| Packet Type | Arguments | Direction |
|-----------------------|----------------------------------------------------------------|------------------|
| webcam-start | device_id,
width, height | client to server | |
webcam-ack | unused, frame_no,
width, height | server to client | |
webcam-frame | device_id,
frame_no, encoding, width,
height, data | client to server | |
webcam-stop | device_no |
device_id, frame_no, width and
height are always integers, encoding is a
string.
The device_id must be smaller than the number of virtual
video devices.
webcam-startwebcam-ack for
frame_no 0, the width and height
may be different from the one requestedwebcam-frame for
frame_no 1webcam-ack for each frame it
receiveswebcam-ack before sending
the next framewebcam-stop packetIf any of these steps fail, a webcam-stop packet must be
sent to the peer.