How to detect if an MPMediaItem represents a DRM-protected audio track on iOS
I would like to know if an MPMediaItem that represents a music track is for a Fairplay/DRM-protected item. Any way to do this? Here's how I do it: MPMediaItem* item; NSURL* assetURL = [item valueForProperty:MPMediaItemPropertyAssetURL]; NSString *title=[item valueForProperty:MPMediaItemPropertyTitle]; if (!assetURL) { /* * !!!: When MPMediaItemPropertyAssetURL is nil, it typically means the file * in question is protected by DRM. (old m4p files) */ NSLog(@"%@ has DRM",title); } Since iOS 4.2 there is a way. There may be a more effective way then the example here (but for my app I needed to