I am currently experimenting with the MusicKit
API, specifically if/how it could replace iTunesLibrary
on macOS and MediaPlayer
on iOS. My question is specifically about DRM-free tracks that the user has available locally (e.g. purchased, matched or uploaded tracks):
Is there a way to access the on-disk URL of locally available and DRM-free tracks?
In the iTunesLibrary
framework on macOS there is ITLibMediaItem.location
and on iOS I can get this path via MPMediaItem.assetURL
, but MusicKit
's Song.url
seems to be nil
for all of these tracks in my tests.