Hierarchy

  • Controller
    • Player

Constructors

Accessors

  • get currentTime(): Promise<number>
  • The current timestamp of the video in seconds. Returns a promise that resolve with the actual value.

    Returns Promise<number>

  • set currentTime(currentTime): void
  • Set the timestamp in seconds from which the video should continue playback. Also known as seeking.

    Parameters

    • currentTime: number

    Returns void

  • get duration(): Promise<number>
  • The video duration in seconds. Returns a promise that resolve with the actual value.

    Returns Promise<number>

  • get loop(): Promise<boolean>
  • Whether the video will restart playback when it has ended. Returns a promise that resolve with the actual value.

    Returns Promise<boolean>

  • set loop(loop): void
  • Set whether the video should restart playback when it has ended.

    Parameters

    • loop: boolean

    Returns void

  • get muted(): Promise<boolean>
  • Whether the video is currently muted. Returns a promise that resolve with the actual value.

    Returns Promise<boolean>

  • set muted(muted): void
  • Set whether the video should play without audio.

    Parameters

    • muted: boolean

    Returns void

  • get paused(): Promise<boolean>
  • Whether the video is currently paused. Returns a promise that resolve with the actual value.

    Returns Promise<boolean>

  • get volume(): Promise<number>
  • The audio volume the video is playing with. Returns a promise that resolve with the actual value.

    Returns Promise<number>

  • set volume(volume): void
  • Set the audio volume the video should use for playback.

    Parameters

    • volume: number

    Returns void

Methods

  • Start listening to feedback from the alugha player (called automatically on construction).

    Returns void

  • Stop listening to feedback from the alugha player.

    Returns void

  • Interrupt playback of the video.

    Returns void

  • Begin or resume playback of the video.

    Returns void

Generated using TypeDoc