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)
本地预览视频帧裸数据回调
Parameters | |
---|---|
data | 视频帧的裸数据(例:RGBA 只需考虑 data[0],I420 需考虑 data[0,1,2]) |
dataLength | 数据的长度(例:RGBA 只需考虑 dataLength[0],I420 需考虑 dataLength[0,1,2]) |
param | 视频帧参数 |
flipMode | 视频帧翻转模式 |
channel | 推流通道 |
onRemoteVideoFrameRawData
public void onRemoteVideoFrameRawData
(ByteBuffer[]
data, int[]
dataLength, ZegoVideoFrameParam param, String
streamID)
远端拉流视频帧裸数据回调,通过 streamID 区分不同的流
Parameters | |
---|---|
data | 视频帧的裸数据(例:RGBA 只需考虑 data[0],I420 需考虑 data[0,1,2]) |
dataLength | 数据的长度(例:RGBA 只需考虑 dataLength[0],I420 需考虑 dataLength[0,1,2]) |
param | 视频帧参数 |
streamID | 拉流的流 ID |