Earlier in this section, three notifications were registered to receive callbacks. These notifications allow the app to determine the current state and behavior of the
MPMusicPlayerController. The first method that is being watched will be called whenever the currently playing item changes. This method contains two parts. The first part updates the album artwork, and the second updates the labels that indicate the artist, song title, and album being played.
Every audio or video item being played through the
MPMusicPlayerController is represented by an
MPMediaItem object. This object can be retrieved by invoking the method
nowPlayingItem on an instance of
UIImage is created to represent the ...