MPMediaItemPropertyArtwork is empty with Apple Music

I cannot get MPMediaItemPropertyArtwork while playing a song from Apple Music with iOS 8.4

I tried to read the image nowPlayingItem

(lldb) po [[[MPMusicPlayerController systemMusicPlayer] nowPlayingItem] valueForProperty:MPMediaItemPropertyArtwork] <MPConcreteMediaItemArtwork: 0x174478940>

But the returned object is empty:

(lldb) p (CGRect)[[[[MPMusicPlayerController systemMusicPlayer] nowPlayingItem] valueForProperty:MPMediaItemPropertyArtwork] bounds] (CGRect) $2 = (origin = (x = 0, y = 0), size = (width = 0, height = 0))

And obviously the returned image is always nil

is there any other way to get the image nowPlayingItem MPMediaItemPropertyArtwork?

+4
source share
1 answer

This happens when you transfer songs from Apple Music that are not stored in the user library.

I wrote a bug report for this, and I think you should do it too. You can trick rdar: // 25413082 if you want.

iTunes API ( ) Art, 100% .

+1

All Articles