Spotify Web Playback SDK

This app uses the following:

If everything is set up properly, you should hear some music!

Developers: Want to play about with the Web Playback SDK? Press ⌘ + I to open Developer Tools and run:

> app.player // Our instance of the Web Playback SDK
> app.transferPlayback() // Transfer playback to our player
> app.play({ trackUri: 'spotify:track:1y7agAufBsudgRXuq6Ekqb' }) // Start playing a Spotify track
> app.play({ trackUri: 'spotify:track:1y7agAufBsudgRXuq6Ekqb', positionMs: 60 * 1000 }) // Or, start playing from 60 seconds
> app.player.setName('My Player Name') // Update player name
> app.player.getCurrentState().then(({ track_window }) => console.log(track_window.current_track.name)) // Get current track name

Remix with Glitch