Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Video

Hierarchy

  • Video

Index

Properties

currentPosition

currentPosition: number

Defines the track position of this video.

returns

current track position in this video in seconds.

duration

duration: number
returns

duration of the video in seconds.

looping

looping: boolean

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

returns

video looping state.

playing

playing: boolean
returns

true if video is playing.

volume

volume: number

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

returns

volume of video.

Methods

onLoaded

  • Handles the loading event for this video.

    Parameters

    • handler: function

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

        • (): void
        • Returns void

    Returns Disposable

pause

  • pause(): void
  • Pauses video playback.

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

    Returns void

play

  • play(): void
  • Starts video playback.

    Note: Video content is streamed.

    Returns void

stop

  • stop(): void
  • Stops video.

    Video starts from the beginning with new play call.

    Returns void

Generated using TypeDoc