tresoneur / SpotifyService

A Razor Class Library providing access to Spotify APIs for Blazor WebAssembly apps.
GNU Affero General Public License v3.0
20 stars 3 forks source link

Playback state is out of date if queried within ~200ms of an action #1

Open tresoneur opened 4 years ago

tresoneur commented 4 years ago

🎵They Don't Care About Us🎵

tresoneur commented 4 years ago

In earlier versions of SpotifyService, the state of the local playback as received in events from the Spotify Playback SDK used to be applied as an update to the Web API PlaybackContext. Sadly the two APIs regularly returned conflicting information, leaving SpotifyService's authoritative playback state changing back and forth between e.g. two different covers of the same album. It was consequently decided that only the Web API state should be used in order to provide a better user experience at the expense of snappiness.