Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Hi , I'm building an app in android to control the spotify app in a phone. I'm pretending to connect it with a small app in a raspberry pi which will be in a car with a screen to pass songs / navigate playlists etc without using the phone
So I've managed to list Tracks from a Playlist and I'm able to play a track, but when it ends I want the next songs are from the playlist.
I don't see a clear way to pass a "starting song" parameter to the player.
If I pass a track url from the playlist individually, the next tracks won't be related with the playlist
Also I Thought about using the queue to do this but isn't the same thing and also I don't see a Way to clear it, so it will be full of unrelated songs in the case the user navigates and seeks some songs from different playlists.
Please could you tell me any way to do this ? Many thanks!
I'm using Web API but I could use Android api if there's a way to do this with it.
Solved! Go to Solution.
You should be able to do this as the Start/Resume a User's Playback endpoint supports this, you can provide the context_uri of the playlist e.g. spotify:playlist:37i9dQZF1DXcBWIGoYBM5M and then the offset of the track in the playlist as a Uri. e.g. {"uri": "spotify:track:1301WleyT98MSxVHPZCA6M"} it should play from that point onwards
You should be able to do this as the Start/Resume a User's Playback endpoint supports this, you can provide the context_uri of the playlist e.g. spotify:playlist:37i9dQZF1DXcBWIGoYBM5M and then the offset of the track in the playlist as a Uri. e.g. {"uri": "spotify:track:1301WleyT98MSxVHPZCA6M"} it should play from that point onwards
Thanks for the reply. Is it the same for the Android/iOS SDK? I read this old announcement (https://developer.spotify.com/community/news/2018/09/14/updates-mobile-platform/) where it is mentioned that : "Unlike our previous playback SDKs, the Android and iOS SDK now allow you to “remote control” playback in the Spotify app. As a result, you can control playback for all users (not just Premium) and provide offline playback."
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…