# setRemoteVideoFrameListener

abstract fun setRemoteVideoFrameListener(listener: RemoteVideoFrameListener?)

Sets a listener for the remote video frames. Blocks rendering. In-place modification of provided I420 frame would affect rendering. If heavy operation is required, which does not affect rendering, e.g. saving screen-shot in JPEG - spawn a work thread and work with a copy of the frame. See VideoUtils for I420 into NV21 conversion.

IMPORTANT: set to null when listener is no longer needed - it will increase performance by eliminating otherwise necessary conversion from captured texture-based frame into memory buffer-backed I420 frame.

#### Parameters

listener

Listener that will be called on each frame from the remote video stream or null to remove any previously assigned listeners.

#### See also

RemoteVideoFrameListener