Access iCloud Music Library download and iCloud status programmatically

557 Views Asked by At

Can the iCloud download status be accessed programmatically from the MPMediaLibrary - MPMediaItemProperty or other source?

We want to detect the source of a song so we know if it is from Apple Music (DRM), matched using iTunes Match (not DRM), purchased, or simply uploaded from a ripped CD etc.

The document About iCloud Music Library icons and status describes the download icon and status for files in the Media Library, and see them in iTunes on the Mac, but can't find a way to get this status information within the app.

1

There are 1 best solutions below

1
Comprehensive_Ant On

You can use MPMediaItem properties - isCloudItem to check download status and hasProtectedAsset to check DRM protection.

See MPMediaItem docs