Type Property

systemMusicPlayer

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

Declaration

@property(class, readonly) MPMusicPlayerController<MPSystemMusicPlayerController> *systemMusicPlayer;

Return Value

The system music player.

Discussion

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

applicationMusicPlayer

Returns the application music player.

applicationQueuePlayer

Returns the application queue music player.

iPodMusicPlayer

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

Deprecated