Skip to content
Function

getDecodableAudioCodecs

ts
getDecodableAudioCodecs(
	checkedCodecs: AudioCodec[] = AUDIO_CODECS as unknown as AudioCodec[],
	options?: SetOptional<AudioDecoderConfig, 'codec' | 'numberOfChannels' | 'sampleRate'>,
): Promise<AudioCodec[]>;

Returns the list of all audio codecs that can be decoded by the browser.

See AudioCodec, AUDIO_CODECS, and SetOptional.

Released under the Mozilla Public License 2.0.