Player
The main constructor for initializing the Web Playback SDK. It should contain an object with the player name, volume and access token.
Parameters
options
The options to instantiate this Player
Constructors
Player
Link copied to clipboard
The options to instantiate this Player
Functions
addListener
Link copied to clipboard
Create a new event listener under event event of type PlaybackStateListener in the Web Playback SDK.
Create a new event listener under event event of type PlaybackPlayerListener in the Web Playback SDK.
disconnect
Link copied to clipboard
open fun disconnect()
Content copied to clipboard
getCurrentState
Link copied to clipboard
on
Link copied to clipboard
Create a new event listener under event event of type PlaybackStateListener in the Web Playback SDK.
Create a new event listener under event event of type PlaybackPlayerListener in the Web Playback SDK.
previousTrack
Link copied to clipboard
removeListener
Link copied to clipboard
open fun removeListener(event: String, cb: ErrorListener = definedExternally)
Content copied to clipboard
open fun removeListener(event: String, cb: PlaybackStateListener = definedExternally)
Content copied to clipboard
open fun removeListener(event: String, cb: PlaybackPlayerListener = definedExternally)
Content copied to clipboard
togglePlay
Link copied to clipboard
Sources
js source
Link copied to clipboard