You are browsing as a guest. Sign up (or log in) to start making projects!

9h 13m 40s logged

I replaced the Spotify integration with a generic one that uses the Windows GSMTC api, meaning it’s way snappier, since it’s not making network requests every time it wants new data! The only reason it needs data is to fetch playback info, and it’s easy to do that since the windows crate gives a bunch of event listeners, meaning I also don’t need to poll anymore.

Unfortunately, the integration from browsers etc. is kind of buggy so thumbnail loading is relatively inconsistent, but by adding some caching and timeouts it works flawlessly :)

I also redid the UI since the old one was frankly quite ugly.

Since the playback listener doesn’t update that frequently for progressbar changes, I also made it fake progress when music is playing and the ui updates, that way even if the latest data is stale, it still looks like the progress bar is moving.

I’m now working on better session stats, I’ll probably end up replacing the all-time stat tracker with more in-depth session-only ones

0
8

Comments 0

No comments yet. Be the first!