postSessionsByIdPlayingByCommand
Issues a playstate command to a client
Requires authentication as user
postSessionsByIdPlayingByCommand
Request
post /Sessions/{Id}/Playing/{Command}
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*Id | path | Session Id |
||
*Command | path | |||
*body | body | PlaystateRequest | PlaystateRequest: |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Operation successful. Empty response. |
||
400 | Bad Request. Server cannot process request. |
||
401 | Unauthorized. Client needs to authenticate. |
||
403 | Forbidden. No permission for the reqested operation. |
||
404 | Resource not found or unavailable. |
||
500 | Server error. |
Definitions
PlaystateRequest
Name | Type | Notes |
---|---|---|
Command | PlaystateCommand | Enum PlaystateCommand |
SeekPositionTicks | integer (int64) | |
ControllingUserId | string | The controlling user identifier. |
PlaystateCommand
Enum Values
- Stop
- Pause
- Unpause
- NextTrack
- PreviousTrack
- Seek
- Rewind
- FastForward
- PlayPause
- SeekRelative