One way to avoid polling the playback state is to create a Spotify web player in the browser window.
Anytime the playback state is adjusted by the user, the object updates immediately. I believe it doesn't even need to make an API call.
The catch is that users may need Spotify premium to use this functionality.
Let me know if this makes sense and if you'd like any help
One way to avoid polling the playback state is to create a Spotify web player in the browser window. Anytime the playback state is adjusted by the user, the object updates immediately. I believe it doesn't even need to make an API call. The catch is that users may need Spotify premium to use this functionality.
Let me know if this makes sense and if you'd like any help