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!