MPMediaItem | iCloud or DRM Protected

Starting in iOS 6, you can check if the item is in iCloud with the following property MPMediaItemPropertyIsCloudItem

https://developer.apple.com/documentation/mediaplayer/mpmediaitempropertyisclouditem?language=objc

Since iOS 9.2, you can check MPMediaItemPropertyHasProtectedAsset for DRM. https://developer.apple.com/documentation/mediaplayer/mpmediaitempropertyhasprotectedasset?language=objc