Skip to content
Function

getDecodableVideoCodecs

ts
getDecodableVideoCodecs(
	checkedCodecs: VideoCodec[] = VIDEO_CODECS as unknown as VideoCodec[],
	options?: SetOptional<VideoDecoderConfig, 'codec'>,
): Promise<VideoCodec[]>;

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

See VideoCodec, VIDEO_CODECS, and SetOptional.

Released under the Mozilla Public License 2.0.