device.hasVideoFormat

hasVideoFormat(codec: "h264" | "h265" | "ogg" | "mp4" | "m4v" | "webm" | "vp9" | "hls") → {boolean}

detect if the given video format is supported

Parameters:
Name Type Description
codec "h264" | "h265" | "ogg" | "mp4" | "m4v" | "webm" | "vp9" | "hls"

the video format to check for support

Returns:
Type Description
boolean

return true if the given video format is supported

Powered by webdoc!