Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TrickMode

Index

Constructors

constructor

  • Creates the trick mode object.

    Parameters

    Returns TrickMode

Accessors

paused

  • get paused(): boolean
  • Overrides the native element paused flag. Since the native element need to be paused internally when trick mode is active.

    Returns boolean

    True if paused.

trickModeActive

  • get trickModeActive(): boolean
  • Flag to indicate if trick mode.

    Returns boolean

    True if trickmode is active.

Methods

cancelLoop

  • cancelLoop(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

getPlaybackRate

  • getPlaybackRate(): number
  • Overrides the native elements playback rate and returns the simulated playbackRate.

    Returns number

    The playbackRate.

loop

  • loop(inFrame: number, outFrame: number): void
  • Parameters

    • inFrame: number
    • outFrame: number

    Returns void

pause

  • pause(): void
  • Pauses the playback. Native elements pause will not work when trick mode is active.

    Returns void

play

  • play(): Promise<void>
  • Plays the playback. Native elements play will not work when trick mode is enabled.

    Returns Promise<void>

setPlaybackRate

  • setPlaybackRate(playbackRate: number): void
  • Sets playback rate. Not bound to the native elements ranges ((0, 16]).

    Parameters

    • playbackRate: number

      The playbackRate.

    Returns void