Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Video

Hierarchy

  • Video

Index

Constructors

Properties

currentPosition: number

Defines the track position of this video.

returns

current track position in this video in seconds.

duration: number
returns

duration of the video in seconds.

looping: boolean

Toggles video looping. If true, video playback starts from start when end is reached.

returns

video looping state.

playing: boolean
returns

true if video is playing.

volume: number

Defines normalized volume of this video. Value is clamped to range [0,1]

returns

volume of video.

Methods

  • Handles the loading event for this video.

    Parameters

    • handler: (() => void)

      function to call when video has loaded (and can be played).

        • (): void
        • Returns void

    Returns Disposable

  • pause(): void
  • Pauses video playback.

    Video resumes at the same track position with next play call.

    Returns void

  • play(): void
  • Starts video playback.

    Note: Video content is streamed.

    Returns void

  • stop(): void
  • Stops video.

    Video starts from the beginning with new play call.

    Returns void