News for hackers. Stuff that matters.
Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by kitsunesoba on Tuesday January 26, 2021 @07:23PM (#25922697)
Unfortunately, libspotify was deprecated years ago and was never given a proper replacement, despite promises to do so. Now all they have available are platform-specific SDKs that can control Spotify devices, which are exceptionally awkward on mobile platforms where in order to play anything, the Spotify app has to remain open in the background.

It really bummed me out because the potential of a language-agnostic cross-platform library for legally streaming music is huge. It essentially decouples the service from the UI.

Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by shp0ngle on Tuesday January 26, 2021 @11:13PM (#25924177)
How do projects like this work?

https://github.com/librespot-org/librespot

Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by MrGilbert on Wednesday January 27, 2021 @01:20AM (#25924932)
It's a reverse-engineered version of the "Spotify Connect" protocol. [1] The original name of "librespot" was "spotify-connect", as this fork shows.

[1]: https://github.com/Fornoth/spotify-connect/blob/master/READM...

Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by kitsunesoba on Wednesday January 27, 2021 @01:01AM (#25924822)
As far as I know, librespot is reverse-engineered from libspotify and/or the official Spotify client. As mentioned on their GitHub page:

> Using this code to connect to Spotify's API is probably forbidden by them. Use at your own risk.

Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by dehrmann on Tuesday January 26, 2021 @09:09PM (#25923439)
> was never given a proper replacement

The eSDK replaces it, but it's basically partners-only.

Re:Netflix and Spotify on a Raspberry Pi 4 with Chromium and... by kingosticks on Wednesday January 27, 2021 @04:37AM (#25926132)
The embedded sdk is a dumbed down library providing playback, control is performed using Spotify's apps (via Spotify Connect). Libspotify provides playback and control i.e. everything needed to implement your own version of Spotify's app (but it predates Spotify Connect so has zero support for it).

It's not much of a replacement. And as you say, there is no public access anyway.