Function hasVideoFormat

  • detect if the given video format is supported

    Parameters

    • codec:
          | "h264"
          | "h265"
          | "ogg"
          | "mp4"
          | "m4v"
          | "webm"
          | "vp9"
          | "hls"

      the video format to check for support

    Returns boolean

    return true if the given video format is supported

    device