A (better) way to press play any song and have its playback start immediately
Background:
As we've found, the Spotify API does have a way to call playback fresh on a track. Currently, we're calling play() and then skipToNext(). However, if there are items already in the queue, those will be called instead.
One way around this I came up with is to call skipToNext() until the current song's uri === the target song's uri. This is buggy and causes every single one of the songs in between to get played for a few seconds in spotify, which is a very strange user experience.
A (better) way to press play any song and have its playback start immediately
Background: As we've found, the Spotify API does have a way to call playback fresh on a track. Currently, we're calling play() and then skipToNext(). However, if there are items already in the queue, those will be called instead.
One way around this I came up with is to call skipToNext() until the current song's uri === the target song's uri. This is buggy and causes every single one of the songs in between to get played for a few seconds in spotify, which is a very strange user experience.