SpotifyWebPlaybackEvent

enum SpotifyWebPlaybackEvent : Enum<SpotifyWebPlaybackEvent>

Entries

PlaybackError
Link copied to clipboard
js
PlaybackError("playback_error")
Emitted when loading and/or playing back a track failed.
AccountError
Link copied to clipboard
js
AccountError("account_error")
Emitted when the user authenticated does not have a valid Spotify Premium subscription.
AuthenticationError
Link copied to clipboard
js
AuthenticationError("authentication_error")
Emitted when the Spotify.Player fails to instantiate a valid Spotify connection from the access token provided to getOAuthToken.
InitializationError
Link copied to clipboard
js
InitializationError("initialization_error")
Emitted when the Spotify.Player fails to instantiate a player capable of playing content in the current environment.
PlayerStateChanged
Link copied to clipboard
js
PlayerStateChanged("player_state_changed")
Emitted when the state of the local playback has changed.
NotReady
Link copied to clipboard
js
NotReady("not_ready")
Emitted when the Web Playback SDK is not ready to play content, typically due to no internet connection.
Ready
Link copied to clipboard
js
Ready("ready")
Emitted when the Web Playback SDK has successfully connected and is ready to stream content in the browser from Spotify.

Properties

name
Link copied to clipboard
js
val name: String
ordinal
Link copied to clipboard
js
val ordinal: Int
spotifyId
Link copied to clipboard
js
val spotifyId: String

Sources

js source
Link copied to clipboard