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.
Any chance to have the Google Cast devices as well in the response of the
API queries?
Currently only Spotify Connect devices enumerated it seems 😞
TIA!
Hey @HofiOne, thanks for reaching out!
Great question! - Google Cast devices use a different type of protocol, which requires the device to be detected from the local network. It's not possible to start playback from outside the network the Google Cast device is in due to these limitations. That's why, they're not able to show up on the Connect Web API.
You should be able to start a session from a local device and control playback via the Spotify Connect API, after your actively playing something on the Google Cast device. Let me know if that works!
Have a great day,
Hubo
Hi @Hubo, thanks for the reply!
The protocol difference was my guess too, but it is still not explaining for me the reason why it could not be possible 😉
Local devices could be reported back just like the presence/availability of the local Spotify Connect clients .
Apart from that, could you please explain a bit more the method you are referring to?
I cannot really see how can i get the google cast devices list and switch between them from a client app.
TIA!
Hofi
Hey @HofiOne,
Got it! It's currently not possible for Spotify apps to report the local devices back to Spotify. The Google Cast devices can only be detected by the local devices. The Google Cast devices aren't connected to a specific account unlike the Spotify Connect devices. I'm afraid I don't have any more information to share about this.
You should be able to control an ongoing Google Cast 'session' with the Web API. After you connect to a Google Cast device on one of your Spotify devices. You can use the API to control playback. Let me know if that works!
Have a great day,
Hubo
Actually that is not what i want to achieve unfortunately 😉
I can control the playback of the actively played track on several ways now, also i'm able to discover all the available Google Cast devices, I can see, identify the Spotify 'session' on a given Google Cast device, query the status of it, etc.
What i want is to switch between the devices, actually to any device without first selecting the device from the Spotify app.
I guess it is not possible as for that i would need a newly opened (or captured and "redirected") session that can be established only by the Spotify client app.
That is why i'm looking for a solution (e.g. in the API) via i can "redirect" the playback to a given cast device.
Hey @HofiOne,
I understand. I'm afraid this isn't possible right now. If this is something you'd like to see, you'd might like to create a new idea on the Ideas board. That's the best way to get your feedback to Spotify. Feel free to give me a shout, if you have any questions!
Have a great day,
Hubo
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…