5 ms·
Seems like spotify and apple music both do the same thing here. the js api creates an iframe to their "embedded player" which is just their full player without
by snek 8y ago
Seems like spotify and apple music both do the same thing here. the js api creates an iframe to their "embedded player" which is just their full player without a ui which will respond to rpc commands from the page.
https://embed.music.apple.com/ https://embed.music.apple.com/
https://sdk.scdn.co/embedded/index.html https://sdk.scdn.co/embedded/index.html
Would be nice if paying users could access actual streams, although that would probably violate the drm or something.
- jdillaaa 8y agoWhat do you mean by actual streams?
- penagwin 8y agoThe audio stream. This will likely never ever be supported by Spotify/Apple because of DRM reasons.
- jdillaaa 8y agoYes, the raw AAC / OGG content would naturally break DRM. Spotify, however, has a ton of libraries that allow for you to write your own clients, which honestly allows for an "audio stream" for most purposes if you are able to run an OS. You can write a very simple CLI app that plays Spotify music for example, and Spotify's libraries will handle the DRM. "Audio stream" to burn to a CD or a tape cassette? Yeah, that's not gonna be supported.
- p1necone 8y agoSurely you could redirect the audio once it's been unencrypted by Spotify though? It has to be presented to your systems audio drivers in an unencrypted state eventually. I guess the downside is that you'd have to rip songs at 1x speed. I wonder if you could spoof the system time provided to Spotify too and have it "play" the music faster than real time.
- kingosticks 8y agoLibspotify gave you PCM. It's since been deprecated but old app keys still work just fine. Their current SDKs are only for iOS and android. They do also have a Web player but the DRM for that requires playback through a Web browser i.e. You cannot write a simple CLI app that plays Spotify music.
- cruise9 8y agoSpotify is supported by some 3rd party DJing apps which would need access to the PCM stream (pacemaker and I think edjing). However they probably have some kind of secret licencing deal/API access.
- xfer 8y agoYeah Spotify doesn't give you an api for stream either, probably related to drm, i wonder how Qobuz(https://github.com/Qobuz/api-documentation/blob/master/endpoints/track/getFileUrl.md https://github.com/Qobuz/api-documentation/blob/master/endpo...) does this without DRM issues?
- leppr 8y agoWhat makes you think Qobuz relies on Spotify ?
- jtl999 8y agoSpotify DRM _has_ been cracked before (extraction 320kbps Vorbis streams without recompression), but for obvious reasons there are no ready-made public PoC's.
- kingosticks 8y agoDoesn't librespot count?
- jtl999 8y agoPossibly. I haven't looked into it though.