Example: I have a Spotify album and I want to play its 15th track. After track 15 is finished playing I want Spotify to play track 16, after that track 17 and so on.
I am using the Spotify App Remote SDK for Android. I can think of three possible solutions.
Solutions:
Get the following tracks of the album through the Spotify Web API and add them to the queque. This one does not work for me though because I do not want Spotify to keep the queque when the user starts playing another playlist or album.
Use a background service that automatically starts playing the next track when the current one is finished. But here the user can experience a significant delay between the tracks.
Start the album and skip multiple times. This option would theoretically work. It does not seem to be a very elegant though.
Is there a better way to achieve this? Like for example somehow adding a context to the track? Thanks for any help!