ZegoMixerAudioConfig class

混流音频配置

配置混流任务的音频码率、声道数、音频编码

Constructors

ZegoMixerAudioConfig(int bitrate, ZegoAudioChannel channel, ZegoAudioCodecID codecID, ZegoAudioMixMode mixMode)
ZegoMixerAudioConfig.defaultConfig()
创建默认混流音频配置(48 kbps, ZegoAudioCodecIDDefault)

Properties

bitrate ↔ int
音频码率,单位为 kbps,默认为 48 kbps,开始混流任务后不能修改
read / write
channel ZegoAudioChannel
音频声道,默认为 Mono 单声道
read / write
codecID ZegoAudioCodecID
编码 ID,默认为 ZegoAudioCodecIDDefault
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
mixMode ZegoAudioMixMode
多路音频流混音模式。若 ZegoAudioMixMode 选择为 Focused,SDK 将会选择 4 路已设置 isAudioFocus 的输入流作为焦点语音突出,若未选择或选择少于 4 路,则会自动补齐 4 路。在 web 平台,此属性不生效。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited