You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In official Spotify API documents there is Web Playback sdk that uses window.onSpotifyWebPlaybackSDKReady.
I tried mimicking the example but cannot quite get it working in my Next/React application. I'm wondering how would I be able to set my application as a media player? It seems that my application does not have device_id thus I cannot use all the Player endpoints.
I'm new to this.
Thank you so much!
The text was updated successfully, but these errors were encountered:
You can install @types/spotify-web-playback-sdk and it will be much more pleasant to work with the playback SDK. You would need to listen for the ready event on your player instance:
player.addListener('ready',({ device_id })=>{console.log('Ready with Device ID',device_id);});
In official Spotify API documents there is Web Playback sdk that uses window.onSpotifyWebPlaybackSDKReady.
I tried mimicking the example but cannot quite get it working in my Next/React application. I'm wondering how would I be able to set my application as a media player? It seems that my application does not have
device_id
thus I cannot use all thePlayer
endpoints.I'm new to this.
Thank you so much!
The text was updated successfully, but these errors were encountered: