---
title: commands
framework: nowplaying
role: symbol
role_heading: Instance Property
path: nowplaying/mediasessionrepresentable/commands
---

# commands

The commands supported by this session.

## Declaration

```swift
@MainActor var commands: [MediaCommand] { get }
```

## Mentioned in

Publishing media sessions

## Discussion

Discussion Compose commands using MediaCommand static factory methods like play(_:), pause(_:), next(_:), previous(_:), seekToPosition(_:) and other playback and content commands.
