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

Getting updated if playing song changes

Getting updated if playing song changes

Plan

Premium

Country

Germany

 

Device

Macbook Air M1 13"

Operating System

MacOS

 

My Question or Issue

 

I need to update a screen in my app if the playing song changes, but I don't want to send http requests to the Spotify API every x amount of seconds.

I looked into Websockets and Long Polling but spotify doesnt offer any of that. I need to make the request on my Django server and send it to the client using websockets, this part is working and the UI is already built but I can't find an efficient solution to my problem. Is there any efficient way to notify the app if the playing song changes without sending way too many http requests?

Reply
0 Replies

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