Options
All
  • Public
  • Public/Protected
  • All
Menu

Video Manager for tracking loaded videos

Hierarchy

  • VideoManager

Index

Accessors

Methods

Accessors

isReady

  • get isReady(): boolean
  • Checks if all videos are loaded and ready to go

    Returns boolean

Static instance

Methods

add

  • add(key: string, path: string, preload?: boolean): void
  • Add a video

    Parameters

    • key: string

      key identifier for referencing the video

    • path: string

      path to the video, including filename

    • Default value preload: boolean = true

      specify if the video should be proloaded (if browser supports it)

    Returns void

findByKey

  • Finds video by it's key

    Parameters

    • key: string

      video identifier

    Returns IVideoInfo

    video info or undefined if not found