spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Spotify multiple streams at the same time like Sonos #1485

Open FPF92 opened 4 years ago

FPF92 commented 4 years ago

Hey everyone,

I have a question about using Spotify for multiroom services:

In Sonos it is possible to play different streams from Spotify in different rooms at the same time. What kind of config is responsible for that and how to build up this in a web app?

My Idea is to have a web app that shows all my amps in different rooms. Therefore it would be nice to have the possibility to play Song A in Room 1 and Song B in Room 2.

I would really appreciate if someone could help me with this question.

Thank you!

jscholes commented 4 years ago

Spotify only allow you to play content on one of their applications/integrations at a time. Sonos get around this by streaming via Spotify Connect on one device, and then taking that audio to broadcast to your other Sonos devices. So do that.

jscholes commented 4 years ago

I should say, this is likely to be basically impossible in a web app at this time, using Spotify's Web Playback SDK. The audio is encrypted, and a browser won't give you access to it directly to re-stream to somewhere else.