Create a new SpotifyPlayer instance.
Player name.
Volume level. (default = 1.0)
Required scopes for a token.
Error message. (empty if no error occurred)
Error type. (empty if no error occurred)
Indicates if a media is playing.
Current position.
Indicates if the player has been initialized and is ready for playing.
The current track.
Connect to Spotify.
Spotify token.
true
if successful, false
otherwise.
Get a list of all a user's devices.
Get current playback state.
Check if a track or a list of tracks is saved in the user's library.
Skip to the next track.
Pause playback.
Begin playback.
Skip to the previous track.
Seek to position.
Set the current volume level
Volume percentage from 0 to 100.
Wait for the player to connect and emit the 'ready' signal.
Promise that resolves to a boolean indicating if the connection was successful.
Appends a script to spotify-player.js to the DOM.
Promise that resolves when the web player script has been loaded.
Generated using TypeDoc
Spotify web player.