owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD audio server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.09k stars 235 forks source link

[Feature] music.apple.com integration #1032

Open dkjsj opened 4 years ago

dkjsj commented 4 years ago

Any thoughts on building an integration to the new music.apple.com web player/API? Apple Music SDK is ready.

ejurgensen commented 4 years ago

Sure, but does the api allow playback of the user's songs?

dkjsj commented 4 years ago

As I read the SDK the only way is to use the MusicKit JS.

So API for retrieving information about playlists - albums - artist etc and MusicKit for the actual play of the content.

ejurgensen commented 4 years ago

forked-daapd couldn't directly use the js, but perhaps it is possible to directly access the endpoints like the js does? I'm not sure if there might be some Fairplay stuff getting in the way. Or some other barrier.

If you find someone who has done this let me know. Or if someone is willing to make a basic commandline PoC, it would also be great.

foxt commented 4 years ago

iirc Apple Music is Widevine encrypted, however last time I checked, Spotify is too, so I assume it's possible? Alternatively, if you're just wanting to implement a music service, Google Play Music (R.I.P) has been implemented in gmusicapi (Python), and Deezer implemented in Deemix (Python)