current_song
🟡 Incomplete
This API's output may have additions in the future.
Access the currently set Song
.
Inputs
None
Outputs
Field | Type | Description |
---|---|---|
song | Song object | See Song |
Example Request
festival-cli current_song
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"current_song"}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"song": {
"title": "SUNFLOWER",
"key": 2594,
"album": 237,
"runtime": 252,
"sample_rate": 44100,
"track": 1,
"disc": null,
"mime": "audio/mpeg",
"extension": "mp3"
}
},
"id": 0
}