Interface MusicPlayer

Hierarchy

Index

Properties

Methods

Properties

public bubbleParent: boolean

public currentPlaybackTime: number

public nowPlaying: Item

public playbackState: number

public repeatMode: number

public shuffleMode: number

public volume: number

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 getBubbleParent(): boolean

Returns

boolean

public getCurrentPlaybackTime(): number

Returns

number

public getNowPlaying(): Item

Returns

Item

public getPlaybackState(): number

Returns

number

public getRepeatMode(): number

Returns

number

public getShuffleMode(): number

Returns

number

public getVolume(): number

Returns

number

public pause()

public play()

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

Parameters

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

public seekBackward()

public seekForward()

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setCurrentPlaybackTime(currentPlaybackTime: number)

Parameters

  • currentPlaybackTime: number

public setQueue(queue: Item)

Parameters

public setQueue(queue: Item[])

Parameters

public setQueue(queue: PlayerQueue)

Parameters

public setRepeatMode(repeatMode: number)

Parameters

  • repeatMode: number

public setShuffleMode(shuffleMode: number)

Parameters

  • shuffleMode: number

public setVolume(volume: number)

Parameters

  • volume: number

public skipToBeginning()

public skipToNext()

public skipToPrevious()

public stop()

public stopSeeking()