I know that there is a similar question MPMusicPlayerController stops sending notifications , but the answer to this question does not solve this problem.
I use iOS 4, and this happens both on devices with multitasking support and on devices without multitasking. I tested the iPhone 4, iPhone 3GS, iPod touch 2G and iPod touch 1G.
I have a project to test this problem. It uses the MPMusicPlayerController to control iPod music playback and receives notifications when the nowPlaying element changes, so it can update the cover, artist and title. It works great on first run. But if you synchronize iTunes, which, it seems to me, stops working with iPod.app on the device and returns to my application, the application no longer receives notifications from MPMusicPlayerController, so it does not update the display of the current playback.
The project also allows you to select a playlist from your iPod library to start playback. It also stops working after synchronization. He can still get a list of playlists, but trying to line them up in an iPod music player does nothing.
Releasing an old instance of MPMusicPlayerController does not work. Unregistration and re-registration for notifications does not work. It seems that the problem is with IPC between the application and iPod.app. The only way to fix this is to kill my application and restart it.
Does anyone else have this problem?
source
share