MPMediaItem.assetURL is nil for Apple Music

Hi,


After I upgraded iOS to 8.4 and enabled Apple Music, I found that assetURL of MPMediaItem of Apple Music from MediaPicker returns null, even in the case that the item was made "available offline".


Is it a bug or as intended?


The music item that I downloaded from iTunes Match returns the assetURL without any problems. Only the Apple Music item returns nil as assetURL.


Thanks,

Seonman

And also, if I disable Apple Music in Setting menu, and then I use MediaPicker, then the API returns error with the log saying

"<MPRemoteMediaPickerController: 0x20c7c00> timed out waiting for fence barrier from com.apple.MusicUIService".


I think it is a bug.

Maybe a DRM thing? If you could get the URL, you could presumably open it with an AVAssetReader and start reading samples.


IIRC, the same thing happens with any .m4p (FairPlay audio, from the pre-iTunes-Plus era) that you try to access via the Media Player API.


—Chris

This is a bug that they still haven't fixed. Everyone that runs into this should log it into the bug reporter. Apparently to fix this (which may be never) they need to see that people want it fixed... Apparently numerous forum posts, bug reports, and stack overflow posts, and 5 OS releases later isn't enough..

MPMediaItem.assetURL is nil for Apple Music
 
 
Q