Function
getEncodableVideoCodecs
ts
getEncodableVideoCodecs(
checkedCodecs: VideoCodec[] = VIDEO_CODECS as unknown as VideoCodec[],
options?: {
/** The width of the video in pixels. */
width?: number;
/** The height of the video in pixels. */
height?: number;
/** The desired quality of the encoded video. */
quality?: Quality;
/**
* The target bitrate for the encoded video, in bits per second. Alternatively, a {@link Quality} can
* be provided.
* @deprecated Use `quality` instead.
*/
bitrate?: number | Quality;
/** The expected frame rate in frames per second, if known. */
frameRate?: number;
},
): Promise<VideoCodec[]>;Returns the list of all video codecs that can be encoded by the browser.
See VideoCodec, VIDEO_CODECS, and Quality.