calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.46k stars 235 forks source link

Feature request: Spotify song playback/sync support? #854

Open Avamander opened 4 years ago

Avamander commented 4 years ago

It would be nice if Cytube supported playing Spotify song links, I've seen other sites embed Spotify so it should be doable to some extent. I'm not sure about syncing however.

Xaekai commented 4 years ago

Their Widget:

Premium or Free
For users who are not logged in on their Spotify account, the Spotify Play button plays a 30-second long audio preview, and then the users are prompted to either login or to sign up.

Their APIs: This already looks like a mine field of pain.

Avamander commented 4 years ago

I guess login makes sense, they are forced to protect the songs with DRM and stuff.

Not sure about the minefield of pain though, if I remember correctly the open-source ListenBrainz did it and it wasn't too hard.

calzoneman commented 4 years ago

It looks like their playback in-browser requires EME (encrypted media extensions; a form of DRM). My web browser is compiled without support for EME, so this wouldn't be something I could develop/test myself.

If someone wants to do it and submit a pull request, I'm willing to consider it if appropriate messaging/warnings are added to make the limitations and login requirements clear for users who opt-in.