ZegoExternalVideoCapture Class Reference

Inherits from NSObject
Declared in zego-api-external-video-capture-oc.h

+ setVideoCaptureFactory:channelIndex:

设置外部采集工厂

+ (void)setVideoCaptureFactory:(nullable id<ZegoVideoCaptureFactory>)factory channelIndex:(ZegoAPIPublishChannelIndex)idx

Parameters

factory

外部采集工厂实例;当置空时,关闭外部采集功能。

idx

推流通道

Discussion

可以在任何时机调用

在 SDK 回调销毁后,才可以销毁对应的 factory

Declared In

zego-api-external-video-capture-oc.h

+ setTrafficControlCallback:channelIndex:

设置外部流控回调

+ (void)setTrafficControlCallback:(nullable id<ZegoTrafficControlCallback>)cb channelIndex:(ZegoAPIPublishChannelIndex)idx

Parameters

cb

流控回调实例

idx

推流通道

Discussion

必须在 推流 前调用;

在 推流 过程中不要改变该回调实例。

必须使用 EnableTrafficControl(int, boolean) 开启流控才会触发此回调;

仅在使用外部码流时有效

Declared In

zego-api-external-video-capture-oc.h