LiveTranscodingAudioConfig class

转推音频配置。

Constructors

LiveTranscodingAudioConfig({TranscodingAudioCodec codec = TranscodingAudioCodec.aac, int kBitrate = 64, int sampleRate = 48000, int channels = 2, AACProfile aacProfile = AACProfile.lc})

Properties

aacProfile ↔ AACProfile
AAC 规格,默认值为 lc。
read / write
channels ↔ int
音频声道数。可取 1(单声道)、2(双声道),默认值为 2。
read / write
codec ↔ TranscodingAudioCodec
音频编码格式,默认值为 aac。
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
kBitrate ↔ int
音频码率,单位 Kbps。可取范围 [32, 192],默认值为 64 Kbps。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
sampleRate ↔ int
音频采样率,单位 Hz。可取 32000 Hz、44100 Hz、48000 Hz,默认值为 48000 Hz。
read / write

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