In my tests, the play count gets updated for both iPodMusicPlayer
and applicationMusicPlayer
.
First I skipped through to the end of the song. Then I jumped back to the previous track and tested the play count using valueForProperty
after getting a MPMusicPlayerControllerNowPlayingItemDidChangeNotification
:
- (void)handleNowPlayingItemChange:(NSNotification *)itemNotification {
MPMediaItem *currentMediaItem = [[self musicPlayer] nowPlayingItem];
NSNumber *currentPlayCount = [currentMediaItem valueForProperty:MPMediaItemPropertyPlayCount];
NSLog(@"Current play count: %@", currentPlayCount);
}