Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve responsiveness of control buttons #6

Open
RhapsodySL opened this issue Jun 17, 2024 · 0 comments
Open

Improve responsiveness of control buttons #6

RhapsodySL opened this issue Jun 17, 2024 · 0 comments

Comments

@RhapsodySL
Copy link

Right now the three center buttons (shuffle/play/repeat) have a significant delay when pressed before updating to the state actually reflected in Spotify. This is despite the fact that Spotify responds much, much more quickly than the button's state is actually updated, so if you have music playing and pause it, it'll be a few seconds before FantasyPlayer's play/pause button actually reflects the correct state despite Spotify having stopped playing the music already.

I'm unsure if this delay is due to the responsiveness of the API, but if it is it may be something worth considering to have FantasyPlayer change the button state immediately based on what the next button state is (eg. if you press the Play icon it turns into the Pause icon immediately), and then update based on what the API returns (in order to prevent state desyncs). This would improve the apparent responsiveness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant