im.zego.zegoexpress.callback.IZegoCustomVideoRenderHandler

Declared in callback/IZegoCustomVideoRenderHandler.java

Public-Func Lists

Public-Func Docs

onCapturedVideoFrameRawData

public void onCapturedVideoFrameRawData (ByteBuffer[] data, int[] dataLength, ZegoVideoFrameParam param, ZegoVideoFlipMode flipMode, ZegoPublishChannel channel)

Local preview video frame raw data callback.

Parameters
data Raw data of video frames (eg: RGBA only needs to consider data[0], I420 needs to consider data[0,1,2])
dataLength Data length (eg: RGBA only needs to consider dataLength[0], I420 needs to consider dataLength[0,1,2])
param Video frame parameters
flipMode video flip mode
channel Publishing stream channel.

onRemoteVideoFrameRawData

public void onRemoteVideoFrameRawData (ByteBuffer[] data, int[] dataLength, ZegoVideoFrameParam param, String streamID)

Remote playing stream video frame raw data callback, you can differentiate different streams by streamID.

Parameters
data Raw data of video frames (eg: RGBA only needs to consider data[0], I420 needs to consider data[0,1,2])
dataLength Data length (eg: RGBA only needs to consider dataLength[0], I420 needs to consider dataLength[0,1,2])
param Video frame parameters
streamID Stream ID