Skip to content
Function

getFirstEncodableSubtitleCodec

ts
getFirstEncodableSubtitleCodec(
	checkedCodecs: SubtitleCodec[],
): Promise<"webvtt" | null>;

Returns the first subtitle codec from the given list that can be encoded by the browser.

See SubtitleCodec.

Released under the Mozilla Public License 2.0.