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;
Callback notification of player throwing video data.
Parameters | |
---|---|
mediaPlayer | Callback player object |
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 flip mode |
mediaPlayer:videoFramePixelBuffer:param:
-
(void)mediaPlayer
:(ZegoMediaPlayer *) mediaPlayer videoFramePixelBuffer:(CVPixelBufferRef) buffer param:(ZegoVideoFrameParam *) param;
Callback notification of player throwing video data of CVPixelBuffer format.
Parameters | |
---|---|
mediaPlayer | Callback player object |
buffer | video data of CVPixelBuffer format |
param | video data frame param |