Overview
TheVirtualCameraDevice class represents a virtual camera that can be used to stream video frames into a Daily call. You can create a virtual camera device and write video frames to it programmatically.
Creation
Create a virtual camera device using theDaily.create_camera_device() static method:
Parameters
The name of the virtual camera device
The width of the video frames in pixels
The height of the video frames in pixels
The color format of the video frames. Default is “RGBA”
Properties
The name of the virtual camera device
The width of the video frames in pixels
The height of the video frames in pixels
The color format of the video frames
Methods
write_frame()
Writes a single video frame to the virtual camera device.Parameters
The video frame data as bytes. The size should match
width * height * bytes_per_pixel based on the color formatReturns
None