Announcements

Help Wizard

Step 1

NEXT STEP

Web Playback SDK

Web Playback SDK

I am working on side project which is spotify clone so i want to play song in my project so how can i use web playback sdk in angular project.

I follow https://developer.spotify.com/documentation/web-playback-sdk/tutorials/getting-started and used same code in index.html but getting below error while building application
uncaught AnthemError: onSpotifyWebPlaybackSDKReady is not defined
at new t (spotify-player.js:18:9580)
at a (spotify-player.js:18:10186)

 

Reply
1 Reply

window.onSpotifyWebPlaybackSDKReady = () => {
console.log("Spotify Web Playback SDK is ready.");
};
 
this function is needed to work it properly

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random