android-sdk icon indicating copy to clipboard operation
android-sdk copied to clipboard

playItemWithIndex does not always play the correct index if you pass it in

Open skeie opened this issue 2 years ago • 0 comments

*Thanks for your interest in the Spotify App Remote SDK!

Issue found on 21.jan.2023.

SDK Version:

0.7.2

OS Version:

Android 13

Scope(s):

'user-read-private', 'playlist-read', 'playlist-read-private', 'streaming', 'playlist-read-collaborative', 'user-follow-read',

Steps to reproduce:

  1. execute this code api.getPlayerApi().skipToIndex("spotify:playlist:37i9dQZF1DX186v583rmzp", 98)

Expected behaviour:

I expect if I call skipToIndex(uri, index); with a given index, it will play that index.

If I try to execute

.skipToIndex("spotify:playlist:37i9dQZF1DX186v583rmzp", 98) 

nothing happens, even though there are 100 tracks in the playlist. If I go to the spotify app an press on track 98 it plays it

Actual behaviour:

It should play track 98 if you pass it in as an index to spotify:playlist:37i9dQZF1DX186v583rmzp

skeie avatar Jan 21 '23 17:01 skeie