ZegoCustomVideoRenderHandler
Declared in
ZegoExpressEventHandler.h
Includes
Public Func Lists
Public Func Docs
onCapturedVideoFrameRawData:dataLength:param:flipMode:channel:
-
(void)onCapturedVideoFrameRawData
:(unsigned char *_Nonnull *_Nonnull) data dataLength:(unsigned int *) dataLength param:(ZegoVideoFrameParam *) param flipMode:(ZegoVideoFlipMode) flipMode channel:(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:dataLength:param:streamID:
-
(void)onRemoteVideoFrameRawData
:(unsigned char *_Nonnull *_Nonnull) data dataLength:(unsigned int *) dataLength param:(ZegoVideoFrameParam *) param streamID:(NSString *) streamID;
远端拉流视频帧裸数据回调,通过 streamID 区分不同的流
Parameters | |
---|---|
data | 视频帧的裸数据(例:RGBA 只需考虑 data[0],I420 需考虑 data[0,1,2]) |
dataLength | 数据的长度(例:RGBA 只需考虑 dataLength[0],I420 需考虑 dataLength[0,1,2]) |
param | 视频帧参数 |
streamID | 拉流的流 ID |
onCapturedVideoFrameCVPixelBuffer:param:flipMode:channel:
-
(void)onCapturedVideoFrameCVPixelBuffer
:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param flipMode:(ZegoVideoFlipMode) flipMode channel:(ZegoPublishChannel) channel;
远端拉流视频帧裸数据回调,通过 streamID 区分不同的流
Parameters | |
---|---|
buffer | 封装为 CVPixelBuffer 的视频帧数据 |
param | 视频帧参数 |
flipMode | 视频帧翻转模式 |
channel | 推流通道 |
onRemoteVideoFrameCVPixelBuffer:param:streamID:
-
(void)onRemoteVideoFrameCVPixelBuffer
:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param streamID:(NSString *) streamID;
远端拉流视频帧 CVPixelBuffer 数据回调,通过 streamID 区分不同的流
Parameters | |
---|---|
buffer | 封装为 CVPixelBuffer 的视频帧数据 |
param | 视频帧参数 |
streamID | 拉流的流 ID |