Skip to content
Function

getEncodableSubtitleCodecs

ts
getEncodableSubtitleCodecs(
	checkedCodecs: SubtitleCodec[] = SUBTITLE_CODECS as unknown as SubtitleCodec[],
): Promise<"webvtt"[]>;

Returns the list of all subtitle codecs that can be encoded by the browser.

See SubtitleCodec and SUBTITLE_CODECS.

Released under the Mozilla Public License 2.0.