Package com.sinch.android.rtc.video
Interface RemoteVideoFrameListener
-
public interface RemoteVideoFrameListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFrame(java.lang.String callId, VideoFrame frame)
Called when a new frame is received from the remote stream.
-
-
-
Method Detail
-
onFrame
void onFrame(java.lang.String callId, VideoFrame frame)
Called when a new frame is received from the remote stream. Frame comes in I420 planar or semi-planar (but not fully interleaved) 420 format. Blocks rendering. In-place modification of provided I420 frame be rendered. 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. SeeVideoUtils
for format conversion options.- Parameters:
callId
- The id of the video call.frame
- The I420 frame object. DO NOT assume any layout! Respect strides and plane pointers! SeeVideoFrame
-
-