ZegoVideoRenderCVPixelBufferDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | zego-api-external-video-render-oc.h |
– onVideoRenderCallback:streamID:
required method
SDK 待渲染视频数据
- (void)onVideoRenderCallback:(CVPixelBufferRef)data streamID:(NSString *)streamID
Parameters
data |
待渲染的 CVPixelBuffer 类型数据 |
---|---|
streamID |
流名 |
Declared In
zego-api-external-video-render-oc.h
– onSetFlipMode:streamID:
required method
SDK 通知下一帧数据是否需要翻转
- (void)onSetFlipMode:(int)mode streamID:(NSString *)streamID
Parameters
mode |
翻转类型 |
---|---|
streamID |
流名 |
Discussion
仅本地预览的外部渲染会回调。此处的 mode 是基于推流图像计算出来的,和 SetVideoMirrorMode 不一定一致,请基于 SetFlipMode 的参数决定是否翻转
Declared In
zego-api-external-video-render-oc.h
– onSetRotation:streamID:
required method
SDK 通知下一帧数据需要旋转的角度
- (void)onSetRotation:(int)rotation streamID:(NSString *)streamID
Parameters
rotation |
逆时针旋转角度 |
---|---|
streamID |
流名 |
Declared In
zego-api-external-video-render-oc.h