Function
canEncodeAudio
ts
canEncodeAudio(
codec: 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;
} & AudioEncodingAdditionalOptions = {},
): Promise<boolean>;Checks if the browser is able to encode the given audio codec with the given parameters.
See AudioCodec, Quality, and AudioEncodingAdditionalOptions.