Skip to content
Function

canDecodeVideo

ts
canDecodeVideo(
	codec: VideoCodec,
	options: SetOptional<VideoDecoderConfig, 'codec'> = {},
): Promise<boolean>;

Checks if the browser is able to decode the given video codec with the given parameters.

See VideoCodec and SetOptional.

Released under the Mozilla Public License 2.0.