playItemWithIndex does not always play the correct index if you pass it in
Opened this issue · 0 comments
skeie commented
*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:
- 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