Replies: 1 comment 3 replies
-
No, we currently do not expose that or even deal with those messages. Although you could if someone added this. Not trivial but not super hard either. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is there a way to know what is being currently played, if the song is being played from another source (ex: from the official Spotify client)?
Is there something like that in the lib?
As a backup, I can get a token (like here https://github.com/librespot-org/librespot/blob/dev/examples/get_token.rs) and then periodically query https://developer.spotify.com/console/get-users-currently-playing-track/, but since I'd like for it to be near real-time, I'll query it almost every second (and unsure if there's a rate limit to Spotify's API) - so I'm curious if there's a better way to go about this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions