Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/media"

Index

Functions

getExtension

  • getExtension(url: string): string
  • Get media file extension from a URL.

    export

    Parameters

    • url: string

      The target URL.

    Returns string

isAutoplaySupported

  • isAutoplaySupported(autoplay: function, muted: function, callback: function): void

isDashSource

  • isDashSource(url: string): boolean
  • Check if URL is an MPEG-DASH element.

    export

    Parameters

    • url: string

      The target URL.

    Returns boolean

isHlsSource

  • isHlsSource(url: string): boolean
  • Check if URL is an HLS element.

    export

    Parameters

    • url: string

      The target URL.

    Returns boolean

predictType

  • predictType(url: string): string
  • Get a base MIME type using a URL anc hecking its file extension; it will default to video/mp4 if nothing found

    export

    Parameters

    • url: string

      The target URL to check media extension from.

    Returns string

Generated using TypeDoc