Jim Leask
Jim Leask

Reputation: 6429

Access iCloud Music Library download and iCloud status programmatically

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.

Upvotes: 2

Views: 570

Answers (1)

Comprehensive_Ant
Comprehensive_Ant

Reputation: 31

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

See MPMediaItem docs

Upvotes: 2

Related Questions