Files
project-vesper/docs/reference
bonaminandClaude Opus 5.5 b01e755c92 feat(Player): "loading" status while a melody downloads + playback_failed report (F-068)
A play that needed a download was ACKed SUCCESS and then nothing was
visible until playback started — and a failed download was only logged.

- New PlayerStatus::LOADING: status/playback publishes action "loading"
  (pid/speed/duration/source set) before the ACK, then "playing" on success
  or "idle" on failure.
- On failure after the ACK, control/reports gets
  { "type": "playback_failed", "payload": { "pid", "reason" } } (and a WS
  INFO of the same). The download task re-checks bells-disabled/overload
  before playing.
- playback.stop / forceStop during LOADING cancels the pending start
  ("Download cancelled — playback will not start"); the transfer finishes
  and is discarded. New plays are refused until it does, since the task
  still owns pid/_melodySteps. A mutex serialises the task's cancel-check +
  play() against the cancel path.
- "loading" is MQTT-only: v1 tablets map unknown WS playback actions to
  "unavailable" (F-061 symptom). system.status reports LOADING; the v1
  adapter maps it to "idle".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:25:27 +03:00
..