add Listener
Create a new event listener under event event of type PlaybackPlayerListener in the Web Playback SDK. Alias for Spotify.Player#on.
Parameters
event
A valid event name. See Web Playback SDK Events.
cb
A callback function to be fired when the event has been executed.
Create a new event listener under event event of type PlaybackStateListener in the Web Playback SDK. Alias for Spotify.Player#on.
Parameters
event
A valid event name. See Web Playback SDK Events.
cb
A callback function to be fired when the event has been executed.
Create a new event listener under event event of type ErrorListener in the Web Playback SDK. Alias for Spotify.Player#on.
Parameters
event
A valid event name. See Web Playback SDK Events.
cb
A callback function to be fired when the event has been executed.