ZegoAudioCodecID enum

音频编码器 ID

Inheritance
  • Object
  • Enum
  • ZegoAudioCodecID

Constructors

ZegoAudioCodecID()
const

Values

Default → const ZegoAudioCodecID

默认值,根据调用 createEngine 时的 scenario 决定。

Normal → const ZegoAudioCodecID

可用于 RTC 和 CDN 推流;码率范围 10kbps ~ 128kbps;支持双声道;延迟在 500ms 左右。与 Web SDK 互通时需要服务端转码;转推 CDN 时不需要服务端云转码。

Normal2 → const ZegoAudioCodecID

可用于 RTC 和 CDN 推流;兼容性好,码率范围 16kbps ~ 192kbps;支持双声道;延迟 350ms 左右;相同码率下(较低码率),音质弱于 Normal。与 Web SDK 互通时需要服务端转码;转推 CDN 时不需要服务端云转码。

Normal3 → const ZegoAudioCodecID

不推荐使用;若需要使用请先咨询 ZEGO 技术支持。仅可用于 RTC 推流。

Low → const ZegoAudioCodecID

不推荐使用;若需要使用请先咨询 ZEGO 技术支持。仅可用于 RTC 推流。

Low2 → const ZegoAudioCodecID

不推荐使用;若需要使用请先咨询 ZEGO 技术支持。仅可用于 RTC 推流;最大码率为 16kbps。

Low3 → const ZegoAudioCodecID

仅可用于 RTC 推流;码率范围 6kbps ~ 192kbps;支持双声道;延迟在 200ms 左右;相同码率下(较低码率),音质明显好于 NormalNormal2;CPU 开销较低。与 Web SDK 互通时不需要服务端云转码;转推 CDN 时需要服务端转码。

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
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

Constants

values → const List<ZegoAudioCodecID>
A constant List of the values in this enum, in order of their declaration.
[Default, Normal, Normal2, Normal3, Low, Low2, Low3]