ZegoAudioConfig class

推流音频配置

配置推流的音频码率、声道数、音频编码

Constructors

ZegoAudioConfig(int bitrate, ZegoAudioChannel channel, ZegoAudioCodecID codecID)
ZegoAudioConfig.preset(ZegoAudioConfigPreset preset)
通过预设枚举值创建音频配置

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
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
toString() → String
A string representation of this object.
inherited

Operators

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