Function
getFirstEncodableAudioCodec
ts
getFirstEncodableAudioCodec(
checkedCodecs: AudioCodec[],
options?: {
/** The number of audio channels. */
numberOfChannels?: number;
/** The sample rate in hertz. */
sampleRate?: number;
/** The desired quality of the encoded audio. */
quality?: Quality;
/**
* The target bitrate for the encoded audio, in bits per second. Alternatively, a {@link Quality} can
* be provided.
* @deprecated Use `quality` instead.
*/
bitrate?: number | Quality;
},
): Promise<AudioCodec | null>;Returns the first audio codec from the given list that can be encoded by the browser.
See AudioCodec and Quality.