ZegoAutoMixStream Class Reference

Inherits from NSObject
Declared in zego-api-auto-mix-stream-oc.h

Overview

自动混流类

– setDelegate:

设置自动混流的事件回调

- (void)setDelegate:(id<ZegoAutoMixStreamDelegate>)delegate

Parameters

delegate

回调

Declared In

zego-api-auto-mix-stream-oc.h

– setSoundLevelDelegate:

设置自动混流中的发言者及其说话音量的回调通知

- (void)setSoundLevelDelegate:(id<ZegoSoundLevelInAutoMixedStreamDelegate>)delegate

Parameters

delegate

回调

Declared In

zego-api-auto-mix-stream-oc.h

– startAutoMixStream:room:config:

开始自动混流

- (int)startAutoMixStream:(NSString *)taskID room:(NSString *)roomID config:(ZegoAutoMixStreamConfig *)config

Parameters

taskID

自动混流任务 ID

roomID

房间 ID

config

自动混流配置

Return Value

0 表示成功, 其值为调用序号. -1 为失败

Declared In

zego-api-auto-mix-stream-oc.h

– stopAutoMixStream:room:

停止自动混流

- (int)stopAutoMixStream:(NSString *)taskID room:(NSString *)roomID

Parameters

taskID

自动混流任务 ID

roroomIDom_id

房间 ID

Return Value

0 表示成功, 其值为调用序号. -1 为失败

Declared In

zego-api-auto-mix-stream-oc.h