onFrameCaptured

abstract fun onFrameCaptured(videoFrame: VideoFrame): VideoFrame

Called for each video frame captured by the camera.

Process the frame and return either the original or a modified VideoFrame. This method is called on the camera capture thread so processing should be efficient to avoid frame drops.

Return

the processed VideoFrame to be sent to the media server

Parameters

videoFrame

the captured VideoFrame