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: function

Type declaration

    • (): void
    • Returns void

Protected _oneShoting

_oneShoting: boolean = false

Private postgesture

postgesture: function

Type declaration

    • (): void
    • Returns void

Private postplay

postplay: function

Type declaration

    • (): void
    • Returns void

Private removecb

removecb: function

Type declaration

    • (): void
    • Returns void

Protected _state

_state: number = PlayingState.STOPPED

Protected _volume

_volume: number = 1

Methods

destroy

  • destroy(): void
  • Returns void

getCurrentTime

  • getCurrentTime(): number

getDuration

  • getDuration(): number

getLoop

  • getLoop(): boolean
  • Returns boolean

getState

  • getState(): number
  • Returns number

getVolume

  • getVolume(): number

pause

  • pause(): void
  • Returns void

play

  • play(): void
  • Returns void

playOneShot

  • playOneShot(volume?: number): void
  • Parameters

    • Default value volume: number = 1

    Returns void

setCurrentTime

  • setCurrentTime(val: number): void

setLoop

  • setLoop(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setVolume

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

    • val: number
    • immediate: boolean

    Returns void

stop

  • stop(): void
  • Returns void

Generated using TypeDoc