createVirtualVideoSource

open fun createVirtualVideoSource(width: Int, height: Int, frameRate: Int): VirtualVideoSource?

Creates a virtual video stream that can receive processed frames. Used for virtual backgrounds where frames are processed by ML Kit and need to be fed back into a WebRTC stream for sending to remote participants.

Return

A VirtualVideoSource that can receive processed frames and provides a MediaStream

Parameters

width

Width of the video frames

height

Height of the video frames

frameRate

Target frame rate