Type Property

iPodMusicPlayer

Returns the iPod music player, which controls the iPod app’s state.

Declaration

@property(class, readonly) MPMusicPlayerController *iPodMusicPlayer;

Return Value

The iPod music player.

Discussion

The iPod music player employs the iPod app on your behalf. On instantiation, it takes on the current iPod app state and controls that state as your app runs. Specifically, the shared state includes the following:

Other aspects of iPod state, such as the on-the-go playlist, are not shared. Music that is playing continues to play when your app moves to the background.

See Also

Getting a Music Player

applicationMusicPlayer

Returns the application music player.

applicationQueuePlayer

Returns the application queue music player.

systemMusicPlayer

Returns the system music player, which controls the Music app’s state.