---
title: iPodMusicPlayer
framework: mediaplayer
role: symbol
role_heading: Type Property
path: mediaplayer/mpmusicplayercontroller/ipodmusicplayer
---

# iPodMusicPlayer

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

## Declaration

```swift
class var iPodMusicPlayer: MPMusicPlayerController { get }
```

## Return Value

Return Value The iPod music player.

## Discussion

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: Repeat mode (see MPMusicRepeatMode) Shuffle mode (see MPMusicShuffleMode Now-playing item (see nowPlayingItem) Playback state (see playbackState) Other aspects of iPod state, such as the on-the-go playlist, aren’t shared. Music that’s playing continues to play when your app moves to the background.
