Type Property

iPodMusicPlayer

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

Declaration

class var iPodMusicPlayer: MPMusicPlayerController { get }

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

class var systemMusicPlayer: MPMusicPlayerController & MPSystemMusicPlayerController

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