Definition
WebCodecs defines AudioEncoderConfig
dictionary AudioEncoderConfig {
required DOMString codec;
[EnforceRange] required unsigned long sampleRate;
[EnforceRange] required unsigned long numberOfChannels;
[EnforceRange] unsigned long long bitrate;
BitrateMode bitrateMode = "variable";
};
This dictionary is extended in the following specifications:
- AAC WebCodecs Registration
partial dictionary AudioEncoderConfig { AacEncoderConfig aac; };
- FLAC WebCodecs Registration
partial dictionary AudioEncoderConfig { FlacEncoderConfig flac; };
- Opus WebCodecs Registration
partial dictionary AudioEncoderConfig { OpusEncoderConfig opus; };
Consolidated IDL (across partials)
dictionary AudioEncoderConfig {
required DOMString codec;
[EnforceRange] required unsigned long sampleRate;
[EnforceRange] required unsigned long numberOfChannels;
[EnforceRange] unsigned long long bitrate;
BitrateMode bitrateMode = "variable";
AacEncoderConfig aac;
FlacEncoderConfig flac;
OpusEncoderConfig opus;
};
Referring IDL interfaces/dictionaries
Referring specifications
- AAC WebCodecs Registration refers to
AudioEncoderConfig
- FLAC WebCodecs Registration refers to
AudioEncoderConfig
- Opus WebCodecs Registration refers to
AudioEncoderConfig