Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioPlayer

Hierarchy

Index

Constructors

constructor

Properties

Protected _blocking

_blocking: boolean = false

Protected _duration

_duration: number = 0

Protected _eventTarget

_eventTarget: any

Protected _interrupted

_interrupted: boolean = false

Protected _onHide

_onHide: Function

Protected _onShow

_onShow: Function

Protected _state

_state: number = PlayingState.STOPPED

Methods

destroy

  • destroy(): void
  • Returns void

Abstract getCurrentTime

  • getCurrentTime(): number
  • Returns number

getDuration

  • getDuration(): number
  • Returns number

Abstract getLoop

  • getLoop(): boolean
  • Returns boolean

getState

  • getState(): number
  • Returns number

Abstract getVolume

  • getVolume(): number
  • Returns number

Abstract pause

  • pause(): void
  • Returns void

Abstract play

  • play(): void
  • Returns void

Abstract playOneShot

  • playOneShot(volume: number): void
  • Parameters

    • volume: number

    Returns void

Abstract setCurrentTime

  • setCurrentTime(val: number): void
  • Parameters

    • val: number

    Returns void

Abstract setLoop

  • setLoop(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

Abstract setVolume

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

    • val: number
    • immediate: boolean

    Returns void

Abstract stop

  • stop(): void
  • Returns void

Generated using TypeDoc