Use the getPlaybackStatus
command in the playback
namespace get the current playback status (transport state) for the group, such as PLAYBACK_STATE_IDLE
, PLAYBACK_STATE_BUFFERING
, or PLAYBACK_STATE_PLAYING
. See the playbackStatus
object for details.
Endpoint
GET
1 |
/groups/{groupId}/playback |
Request Parameters
There are no request parameters in the body, all of the request parameters are in the header.
This command requires a groupId
to determine the target of the command. See the Control documentation for details.
Response
Returns a playbackStatus
object representing the state of the group.
If not successful, returns a globalError
.
Examples
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
{ "playbackState": "PLAYBACK_STATE_BUFFERING", "queueVersion": "3", "itemId": "abc", "positionMillis": 56750, "playModes": { "repeat": false, "repeatOne": false, "crossfade": true, "shuffle": false }, "availablePlaybackActions": { "canSkip": true, "canSkipBack": false, "canSeek": false, "canRepeat": false, "canRepeatOne": false, "canCrossfade": true, "canShuffle": false } } |