Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioPlayerDOM

Hierarchy

Index

Constructors

constructor

Properties

Protected _audio

_audio: HTMLAudioElement

Protected _blocking

_blocking: boolean = false

Protected _cbRegistered

_cbRegistered: boolean = false

Protected _duration

_duration: number = 0

Protected _eventTarget

_eventTarget: any

Protected _interrupted

_interrupted: boolean = false

Protected _loop

_loop: boolean = false

Protected _onHide

_onHide: Function

Protected _onShow

_onShow: Function

Private ongesture

ongesture: () => void

Type declaration

    • (): void
    • Returns void

Protected _oneShotOngoing

_oneShotOngoing: boolean = false

Private postgesture

postgesture: () => void

Type declaration

    • (): void
    • Returns void

Private postplay

postplay: () => void

Type declaration

    • (): void
    • Returns void

Private removecb

removecb: () => void

Type declaration

    • (): void
    • Returns void

Protected _state

_state: number = PlayingState.STOPPED

Protected _volume

_volume: number = 1

Methods

destroy

  • destroy(): void

getCurrentTime

  • getCurrentTime(): number

getDuration

  • getDuration(): number

getLoop

  • getLoop(): boolean

getState

  • getState(): number

getVolume

  • getVolume(): number

pause

  • pause(): void

play

  • play(): void

playOneShot

  • playOneShot(volume?: number): void

setCurrentTime

  • setCurrentTime(val: number): void

setLoop

  • setLoop(val: boolean): void

setVolume

  • setVolume(val: number, immediate: boolean): void

stop

  • stop(): void

Generated using TypeDoc