repeat

🟢 Stable

This API is stable since festivald v1.0.0.


Set the playback repeat mode.

Inputs

FieldTypeDescription
modestring, one of off, song, queueThe repeat mode to set. off turns off repeating, song turns on Song repeating, queue turns on queue repeating.

Outputs

FieldTypeDescription
previousstring, one of off, song, queueWhat the repeat mode was set to previously
currentstring, one of off, song, queueWhat 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
}