2
在我的測試中,似乎通過MPMusicPlayerController播放MPMediaItem不會更新播放次數(使用iPod或應用程序實例)MPMusicPlayerController是否更新Play Count?
任何人都可以證實這一點嗎?我在文檔中也沒有看到任何內容。
在我的測試中,似乎通過MPMusicPlayerController播放MPMediaItem不會更新播放次數(使用iPod或應用程序實例)MPMusicPlayerController是否更新Play Count?
任何人都可以證實這一點嗎?我在文檔中也沒有看到任何內容。
在我的測試中,播放次數在iPodMusicPlayer
和applicationMusicPlayer
之間得到更新。
首先我跳到歌曲的尾部。然後我跳回到以前的軌跡,並得到一個MPMusicPlayerControllerNowPlayingItemDidChangeNotification
測試後使用valueForProperty
播放計數:
- (void)handleNowPlayingItemChange:(NSNotification *)itemNotification {
MPMediaItem *currentMediaItem = [[self musicPlayer] nowPlayingItem];
NSNumber *currentPlayCount = [currentMediaItem valueForProperty:MPMediaItemPropertyPlayCount];
NSLog(@"Current play count: %@", currentPlayCount);
}
大。我現在看到你必須點擊iTunes中的「同步」來獲得這些數據。 – yano