Type Property


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


class var systemMusicPlayer: MPMusicPlayerController & MPSystemMusicPlayerController { get }

Return Value

The system music player.


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

Other aspects of the Music app’s state 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 iPodMusicPlayer: MPMusicPlayerController

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