ZegoVideoCaptureClientDelegate Protocol Reference
Conforms to | NSObject ZegoVideoCaptureDelegate |
---|---|
Declared in | zego-api-external-video-capture-oc.h |
– destroy
required method
销毁
- (void)destroy
Discussion
调用者需要在此 API 中进行相关的销毁操作
Declared In
zego-api-external-video-capture-oc.h
– setStatusReason:withReason:
required method
发生错误调用该接口,以通知远端 ZEGOAPI_DEVICE_ERROR_REASON_DISABLED/ZEGOAPI_DEVICE_ERROR_REASON_MUTE是不能设置的,ZEGOAPI_DEVICE_ERROR_REASON_DISABLED通过enableCamera触发的,ZEGOAPI_DEVICE_ERROR_REASON_MUTE通过muteVideoPublish触发 初始化外部采集后默认设备状态是好的,用户需要在外部采集通知StartCapture后补一个初始状态,如果前后原因都是属于设备关闭,那么引擎只会通知第一个原因
- (void)setStatusReason:(bool)is_closed withReason:(ZegoAPIDeviceErrorReason)reason
Parameters
is_closed |
当前设备是否处于关闭状态 |
---|---|
reason |
错误原因,参考 ZegoAPIDeviceErrorReason 定义 |
Declared In
zego-api-external-video-capture-oc.h
– setFillMode:
required method
设置图像填充模式
- (void)setFillMode:(ZegoVideoFillMode)mode
Parameters
mode |
填充模式,参考 ZegoVideoFillMode 定义 |
---|
Discussion
supportBufferType 为 ZegoVideoCaptureDeviceOutputBufferTypeCVPixelBuffer 或 ZegoVideoCaptureDeviceOutputBufferTypeGlTexture2D 时有效
Declared In
zego-api-external-video-capture-oc.h
– setFlipMode:
required method
设置图像翻转模式
- (void)setFlipMode:(int)mode
Parameters
mode |
翻转模式, 参考 ZegoVideoFlipMode 的定义 |
---|
Discussion
supportBufferType 为 ZegoVideoCaptureDeviceOutputBufferTypeGlTexture2D 时有效
默认值 ZegoVideoFlipVertical, 如果不需要,设置成 ZegoVideoFlipNone
Declared In
zego-api-external-video-capture-oc.h
– setRotation:
required method
设置图像旋转角度
- (void)setRotation:(int)rotation
Parameters
rotation |
顺时针旋转角度,取值范围:0 / 90 / 180 / 270 |
---|
Discussion
supportBufferType 为 ZegoVideoCaptureDeviceOutputBufferTypeCVPixelBuffer 时有效
与 setConfig(“vcap_external_handle_rotation=false”) 联用时,可以将角度旋转放在拉流端处理。默认在推流端处理
注意此处设置的角度是顺时针方向旋转角度,而在拉流端处理时, 给的角度是按逆时针方向旋转的
Declared In
zego-api-external-video-capture-oc.h