ZegoMediaPlayerVideoHandler
Declared in
ZegoExpressEventHandler.h
Includes
Public Func Lists
Public Func Docs
mediaPlayer:videoFrameRawData:dataLength:param:
-
(void)mediaPlayer
:(ZegoMediaPlayer *) mediaPlayer videoFrameRawData:(const unsigned char *_Nonnull *_Nonnull) data dataLength:(unsigned int *) dataLength param:(ZegoVideoFrameParam *) param;
播放器抛视频数据的回调
Parameters | |
---|---|
mediaPlayer | 回调的播放器实例 |
data | 视频帧的裸数据(例:RGBA 只需考虑 data[0],I420 需考虑 data[0,1,2]) |
dataLength | 数据的长度(例:RGBA 只需考虑 dataLength[0],I420 需考虑 dataLength[0,1,2]) |
param | 视频帧参数 |
mediaPlayer:videoFramePixelBuffer:param:
-
(void)mediaPlayer
:(ZegoMediaPlayer *) mediaPlayer videoFramePixelBuffer:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param;
播放器视频帧 CVPixelBuffer 数据回调
Parameters | |
---|---|
mediaPlayer | 回调的播放器实例 |
buffer | 封装为 CVPixelBuffer 的视频帧数据 |
param | 视频帧参数 |