Type Property

applicationMusicPlayer

Returns the application music player.

Declaration

class var applicationMusicPlayer: MPMusicPlayerController { get }

Return Value

The application music player.

Discussion

The application music player plays music locally within your app. The music player does not affect the Music app’s state. When your app moves to the background, the music player stops playing the current media.

See Also

Getting a Music Player

class var systemMusicPlayer: MPMusicPlayerController & MPSystemMusicPlayerController

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

class var iPodMusicPlayer: MPMusicPlayerController

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

Deprecated