alexa-spotify-connect
alexa-spotify-connect copied to clipboard
Chromecast support
Chromecast works with Spotify but I suspect uses their own API rather than Spotify Connect.
Would it be possible to add Spotify Chromecast support to this integration?
Happy to work on this myself if you have any pointers.
I would think that as Chromecast devices show as regular Connect devices, they would be able to be controlled by the skill.
Have you been able to to test this? Unfortunately I do not have much experience using Chromecast with Spotify.
My Chromecast Audio arrived this morning (bought it specifically for use with this integration 😄) and didn’t show up when listing devices. In the Spotify app it is listed as Chromecast rather than Spotify Connect.
I’ll have another go
Please let me know how it goes, I'm not sure if I will be able to help in configuring it as I do not have my own to test but let me know if you need help understanding the code for skill or anything like that.
Related: https://github.com/spotify/web-api/issues/787
The Chromecast doesn't show in the Spotify API until the Spotify app is running on the Chromecast.
The mobile spotify apps find the Chromecast over the local network and initialise them. If you start something via the mobile app, they then show up as devices via the API and can be used via Alexa.
So in order to get full compatibility, we'd need a way to make Alexa launch the Spotify app on the Chromecast in order to make it discoverable.
So the first thing to do is understanding how Spotify communicates with a Chromecast. https://developers.caffeina.com/reverse-engineering-spotify-and-chromecast-protocols-to-let-my-vocal-assistant-play-music-ada4767efa2
I would assume that would need to be handled by some sort of Google API, i.e. one that can interact with Chromecast devices directly. Unfortunately that would probably be out of the scope of this skill/Alexa on its own.
I'll keep looking in to this when I get a chance.
I need to figure out what https://github.com/MoonshineSG/spotify.google is doing to see if this is an option. Alternatively perhaps a Chromecast app could be built to aid discovery.
I'm new to Alexa development though so not even sure how you'd go about discovering devices on your LAN when the app is running on Heroku!