repeat
🟢 Stable
This API is stable since festivald v1.0.0
.
Set the playback repeat mode.
Inputs
Field | Type | Description |
---|---|---|
mode | string, one of off , song , queue | The repeat mode to set. off turns off repeating, song turns on Song repeating, queue turns on queue repeating. |
Outputs
Field | Type | Description |
---|---|---|
previous | string, one of off , song , queue | What the repeat mode was set to previously |
current | string, one of off , song , queue | What the repeat mode is now set at |
Example Request
festival-cli repeat --mode off
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"repeat","params":{"mode":"off"}}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"previous": "off",
"current": "song"
},
"id": 0
}