WebIDLpedia

AudioEncoderConfig dictionary

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:

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