Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Play songs with custom media player

Play songs with custom media player

My Question or Issue

I was looking at the Web Playback SDK and learned that I can play music in my browser through the desktop Spotify client. However, I want to be able to play music WITHOUT having to start it from another Spotify client. Is this possible with the SDK? Can I create my own custom media player buttons and use them to play any song based on a URI? 

Reply
1 Reply

Late, but answering your question: yes, it's possible to play a track on your app without have to initialize the player from another Spotify Client. Is simple: follow these instructions here  and be sure that your player is connected, use the event "ready". Once your player is ready, you will receive a device_id through the callback function. Save this device_id and use it here to make a request to play a track on your new device. 

 

tip: be sure that you have all the necessary scopes to perform these actions.

Suggested posts

Type a product name