ZegoAudioConfig class

推流音频配置

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

Constructors

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

Properties

bitrate ↔ int
音频码率,单位为 kbps,默认为 48 kbps. 该配置推流前后设置均可生效
getter/setter pair
channel ZegoAudioChannel
音频编码声道,控制编码器编码的声道数。默认为 Mono 单声道。仅在推流前设置生效。
getter/setter pair
codecID ZegoAudioCodecID
编码 ID,默认为 ZegoAudioCodecIDDefault。仅在推流前设置生效。
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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