sinch-rtc

# LocalVideoFrameListener

fun interface LocalVideoFrameListener

Listener to be notified about changes connected with local video frames processing.

#### See also

VideoController.setLocalVideoFrameListener

## Functions

onFrame
Link copied to clipboard
abstract fun onFrame(frame: VideoFrame, processedFrameListener: ProcessedVideoFrameListener)

Called on a worker thread when a new frame is available from the local camera. It provides the possibility for developer to process the local video frames (e.g. applying filters on the frames), and send the updated video frames to the remote client. Updated frames are also shown on preview. The video frames are in YUV I420 planar or semi-planar (but not fully interleaved) format.