SPTAudioStreamingController stop playURIs short buffer

| | August 7, 2015

If the Spotify stream was stopped by the user and then another Spotify stream is played, there’s a short “buffer” where the old stream is playing before it switches to the new one. How to avoid short buffer to be played?
Code example:

// User taps to play song.
[self.player playURIs:@[trackURI] withOptions:options callback:nil];

// User taps stop.
[self.player stop:nil];

// After some time user taps to play another song.
[self.player playURIs:@[trackURI] withOptions:options callback:nil]; // Short buffer played from old song.

Leave a Reply