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;
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:dataLength:param:streamID:
-
(void)onRemoteVideoFrameRawData
:(unsigned char *_Nonnull *_Nonnull) data dataLength:(unsigned int *) dataLength param:(ZegoVideoFrameParam *) param streamID:(NSString *) 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 |
onCapturedVideoFrameCVPixelBuffer:param:flipMode:channel:
-
(void)onCapturedVideoFrameCVPixelBuffer
:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param flipMode:(ZegoVideoFlipMode) flipMode channel:(ZegoPublishChannel) channel;
Remote playing stream video frame raw data callback, you can differentiate different streams by streamID.
Parameters | |
---|---|
buffer | video data of CVPixelBuffer format |
param | Video frame param |
flipMode | video flip mode |
channel | Publishing stream channel. |
onRemoteVideoFrameCVPixelBuffer:param:streamID:
-
(void)onRemoteVideoFrameCVPixelBuffer
:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param streamID:(NSString *) streamID;
Remote playing stream video frame CVPixelBuffer data callback, you can differentiate different streams by streamID.
Parameters | |
---|---|
buffer | video data of CVPixelBuffer format |
param | Video frame param |
streamID | Stream ID |