Astra: now playing
astra_now_playingGet the current playback state of the Astra music player: track, position, duration, volume, mute, shuffle, repeat, output device, and queue length. Uses a live event stream for efficient updates.
Instructions
Get the current playback state of the Astra music player: track, position, duration, volume, mute, shuffle, repeat, output device, and queue length. Served from a live event stream when connected, so it is cheap to call. Returns the current track's ref, which can be passed to astra_set_favorite or astra_playlist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| muted | Yes | ||
| state | Yes | ||
| repeat | Yes | ||
| source | Yes | ||
| volume | Yes | ||
| shuffle | Yes | ||
| updatedAt | Yes | ||
| queueCount | Yes | ||
| currentTrack | Yes | ||
| durationSeconds | Yes | ||
| positionSeconds | Yes | ||
| outputDeviceLabel | Yes |