VideoFrameProcessor

Interface for processing video frames before they are sent to the media server.

Implement this interface to apply custom video processing effects (e.g., background blur, filters, overlays) to each captured video frame.

Register a processor using applyVideoProcessor and remove it using removeVideoProcessor.

Code Example:


val processor = object : VideoFrameProcessor {
    override fun onFrameCaptured(videoFrame: VideoFrame): VideoFrame {
        // Apply custom processing to the frame
        return processedFrame
    }
}

VideoSDK.applyVideoProcessor(processor)

See also

VideoSDK.removeVideoProcessor()

Functions

Link copied to clipboard
abstract fun onFrameCaptured(videoFrame: VideoFrame): VideoFrame
Called for each video frame captured by the camera.