Interface AudioPlayer

Hierarchy

Index

Properties

Methods

Properties

public STATE_BUFFERING: number

public STATE_INITIALIZED: number

public STATE_PAUSED: number

public STATE_PLAYING: number

public STATE_STARTING: number

public STATE_STOPPED: number

public STATE_STOPPING: number

public STATE_WAITING_FOR_DATA: number

public STATE_WAITING_FOR_QUEUE: number

public allowBackground: boolean

public autoplay: boolean

public bitRate: number

public bubbleParent: boolean

public bufferSize: number

public idle: boolean

public paused: boolean

public playing: boolean

public progress: number

public state: number

public url: string

public volume: number

public waiting: boolean

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public applyProperties(props: Dictionary)

Parameters

public fireEvent(name: string, event: Dictionary)

Parameters

public getAllowBackground(): boolean

Returns

boolean

public getAutoplay(): boolean

Returns

boolean

public getBitRate(): number

Returns

number

public getBubbleParent(): boolean

Returns

boolean

public getBufferSize(): number

Returns

number

public getIdle(): boolean

Returns

boolean

public getPaused(): boolean

Returns

boolean

public getPlaying(): boolean

Returns

boolean

public getProgress(): number

Returns

number

public getState(): number

Returns

number

public getUrl(): string

Returns

string

public getVolume(): number

Returns

number

public getWaiting(): boolean

Returns

boolean

public isPaused(): boolean

Returns

boolean

public isPlaying(): boolean

Returns

boolean

public pause()

public play()

public release()

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public setBitRate(bitRate: number)

Parameters

  • bitRate: number

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setBufferSize(bufferSize: number)

Parameters

  • bufferSize: number

public setPaused(paused: boolean)

Parameters

  • paused: boolean

public setUrl(url: string)

Parameters

  • url: string

public setVolume(volume: number)

Parameters

  • volume: number

public start()

public stateDescription(state: number): string

Parameters

  • state: number

Returns

string

public stop()