Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioTagInstance

Internal class representing a HTML5 audio instance

Hierarchy

  • AudioTagInstance

Implements

Index

Constructors

constructor

  • Parameters

    • _src: string

    Returns AudioTagInstance

Properties

Private _audioElement

_audioElement: HTMLAudioElement

Private _isPaused

_isPaused: boolean = false

Private _isPlaying

_isPlaying: boolean = false

Private _loop

_loop: boolean = false

Private _playingPromise

_playingPromise: Promise<any>

Private _src

_src: string

Private _volume

_volume: number = 1

Accessors

loop

  • get loop(): boolean
  • Returns boolean

Methods

Private _handleOnEnded

  • _handleOnEnded(): void
  • Returns void

Private _resume

  • _resume(): void
  • Returns void

Private _start

  • _start(): void
  • Returns void

Private _wireUpOnEnded

  • _wireUpOnEnded(): void
  • Returns void

isPlaying

  • isPlaying(): boolean
  • Returns boolean

pause

  • pause(): void
  • Returns void

play

  • Returns Promise<any>

setLoop

  • setLoop(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setVolume

  • setVolume(value: number): void
  • Parameters

    • value: number

    Returns void

stop

  • stop(): void
  • Returns void