im.zego.zegoexpress.callback.IZegoMediaPlayerVideoHandler
Declared in
callback/IZegoMediaPlayerVideoHandler.java
Public Func Lists
Public Func Docs
onVideoFrame
public void onVideoFrame
(ZegoMediaPlayer mediaPlayer, ByteBuffer[]
data, int[]
dataLength, ZegoVideoFrameParam param)
播放器抛视频数据的回调
Parameters | |
---|---|
mediaPlayer | 回调的播放器实例 |
data | 视频帧的裸数据(例:RGBA 只需考虑 data[0],I420 需考虑 data[0,1,2]) |
dataLength | 数据的长度(例:RGBA 只需考虑 dataLength[0],I420 需考虑 dataLength[0,1,2]) |
param | 视频帧参数 |