---
title: playCommand
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpremotecommandcenter/playcommand
---

# playCommand

The command object for starting playback of the current item.

## Declaration

```swift
var playCommand: MPRemoteCommand { get }
```

## Discussion

Discussion Use the object in this property to register your app’s handler for pausing the currently playing track. In your handler, play the current item from the point at which the track was paused, or from the beginning if the item was not paused. You can disable the command if your app does not support it.

## See Also

### Playback commands

- [pauseCommand](mediaplayer/mpremotecommandcenter/pausecommand.md)
- [stopCommand](mediaplayer/mpremotecommandcenter/stopcommand.md)
- [togglePlayPauseCommand](mediaplayer/mpremotecommandcenter/toggleplaypausecommand.md)
