Music

Send the song's clock

POST/api/song/clock
Open. Open to everyone who can reach Tempolight.

Where the song is now. Send it on play, pause and seek, and every second or so (the WebSocket's clock message does the same).

Request body application/json

posnumberrequired

Seconds.

playingbooleanrequired
ratenumber
Default 1

Responses

200OKapplication/json
oktruerequired
Request
curl -X POST 'http://localhost:8080/api/song/clock' \
  -H 'content-type: application/json' \
  -d '{
  "pos": 42.3,
  "playing": true,
  "rate": 1
}'
Response
{
  "ok": true
}
Edit on GitHub