---
title: playbackState
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpnowplayinginfocenter/playbackstate
---

# playbackState

The current playback state of the app.

## Declaration

```swift
var playbackState: MPNowPlayingPlaybackState { get set }
```

## Discussion

Discussion This property only applies to macOS. You must set this property every time the app begins or halts playback, otherwise remote control functionality may not work as expected.

## See Also

### Setting the playback state in macOS

- [MPNowPlayingPlaybackState](mediaplayer/mpnowplayingplaybackstate.md)
