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

flicker when manually selecting a new song #26

Open
jonathangarelick opened this issue Apr 25, 2024 · 8 comments
Open

flicker when manually selecting a new song #26

jonathangarelick opened this issue Apr 25, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@jonathangarelick
Copy link
Owner

if you are in spotify and you manually click play on a different song (instead of something like next track) spotify will register playback state as stopped. the model will reset the data and there will be a visual flicker from soundseer icon to next song title

@jonathangarelick jonathangarelick added the bug Something isn't working label Apr 25, 2024
@jonathangarelick
Copy link
Owner Author

ooh this looks like a tough one 😆

@jonathangarelick
Copy link
Owner Author

api appears to be unreliable. now iffy replication

@jonathangarelick
Copy link
Owner Author

my first assumption is wrong. the problem is in the view. the updates should be delayed by 100ms or so if possible

@jonathangarelick
Copy link
Owner Author

I thought throttle would solve this, but doesn't appear to work...

https://developer.apple.com/documentation/combine/fail/throttle(for:scheduler:latest:)

@jonathangarelick
Copy link
Owner Author

the problem was the events were too close together (~20ms). solved, fix coming in shortly

@jonathangarelick
Copy link
Owner Author

it's back 😞

@jonathangarelick
Copy link
Owner Author

still happening after 400ms delay. the delay seems to correlate how "far" songs are. like if I'm clicking songs on the same playlist, low latency. I click songs on way different playslists, especially one that I have not touched for long, higher latency

@jonathangarelick
Copy link
Owner Author

still seeing this 4/28, after 600ms delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant