---
title: SystemMusicPlayer
framework: musickit
role: symbol
role_heading: Class
path: musickit/systemmusicplayer
---

# SystemMusicPlayer

An object your app uses to play music by controlling the Music app’s state.

## Declaration

```swift
class SystemMusicPlayer
```

## Overview

Overview The system music player employs the Music app on your behalf. When your app accesses the system music player for the first time, it assumes the current Music app state and controls it as your app runs. The shared state includes the following: Repeat mode (see MusicPlayer.RepeatMode) Shuffle mode (see MusicPlayer.ShuffleMode) Playback status (see MusicPlayer/PlaybackStatus) The system music player doesn’t share other aspects of the Music app’s state. Music that’s playing continues to play when your app moves to the background.

## Topics

### Instance Properties

- [queue](musickit/systemmusicplayer/queue.md)

### Type Properties

- [shared](musickit/systemmusicplayer/shared.md)

## Relationships

### Inherits From

- [MusicPlayer](musickit/musicplayer.md)

## See Also

### Playback

- [ApplicationMusicPlayer](musickit/applicationmusicplayer.md)
- [MusicPlayer](musickit/musicplayer.md)
- [PlayableMusicItem](musickit/playablemusicitem.md)
- [PlayParameters](musickit/playparameters.md)
