ZegoAudioCodecID enum

Audio codec ID.

Inheritance
  • Object
  • Enum
  • ZegoAudioCodecID

Constructors

ZegoAudioCodecID()
const

Values

Default → const ZegoAudioCodecID

Default, determined by the scenario when calling createEngine.

Normal → const ZegoAudioCodecID

Can be used for RTC and CDN streaming; bitrate range from 10kbps to 128kbps; supports stereo; latency is around 500ms. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.

Normal2 → const ZegoAudioCodecID

Can be used for RTC and CDN streaming; good compatibility; bitrate range from 16kbps to 192kbps; supports stereo; latency is around 350ms; the sound quality is worse than Normal in the same (low) bitrate. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.

Normal3 → const ZegoAudioCodecID

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.

Low → const ZegoAudioCodecID

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.

Low2 → const ZegoAudioCodecID

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming; maximum bitrate is 16kbps.

Low3 → const ZegoAudioCodecID

Can only be used for RTC streaming; bitrate range from 6kbps to 192kbps; supports stereo; latency is around 200ms; Under the same bitrate (low bitrate), the sound quality is significantly better than Normal and Normal2; low CPU overhead. Server cloud transcoding is not required when communicating with the Web SDK, and it is required when relaying to 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]