feat(opendeck): preview and reroll radio from liked tracks

This commit is contained in:
ab committed 2026-11-29 17:00:17 +02:00
1 parent cc1176a160
commit c911cb63e3
21 files changed
+1423 -70

No files matched your search

+30 -2
View File
@@ -153,13 +153,13 @@ available sample. Normal playback snapshots retain their own cadence.
## Similarity radio
Radio uses the current music track as its seed and creates a temporary play
The `start_radio` command uses the current music track as its seed and creates a temporary play
queue, without saving or editing a library playlist. Similarity must already
be enabled and the seed must have a local indexed embedding (a remote seed
is resolved by content ID against this computer's library). Podcast seeds
are rejected. Network queries respect the existing federation consent.
The `radio` snapshot field has an operation `id`, a `state`
The `radio` snapshot field has an operation `id`, an optional `request_id` matching the start command, a `state`
(`idle`, `searching`, `starting`, `playing`, `failed`) and an optional English
error. Local and federated candidates are collected asynchronously before
the queue is replaced. A bounded peer search is awaited; if peers fail but
@@ -173,6 +173,34 @@ or an active output's matching playback report with advancing position.
The plugin animates the Radio key until that operation succeeds, then
returns to the main screen. Errors keep the Functions screen available.
### Radio from a liked track
When a snapshot advertises `liked_radio_supported: true`, a control surface
can preview a random liked music track, including while playback is idle.
Choosing reads the personal library and the active local similarity index.
The response goes to the requesting client. For example,
```json
{"type":"command","id":"pick-1","command":{"type":"pick_liked_radio_seed"}}
{"type":"liked_radio_seed","id":"pick-1","seed":{"key":"lib:7","title":"Nightfall","artist":"Northline"}}
```
On a reroll, pass the previous `seed.key` as `exclude`. Furumi picks a different
eligible track whenever possible. Replaying the same request ID returns the
cached choice. The preview has no playback or network side effects.
After displaying the chosen track, send its exact opaque key to start radio.
```json
{"type":"command","id":"start-1","command":{"type":"start_liked_radio","seed_key":"lib:7"}}
```
Furumi checks that the selected track is still liked and uses its embedding
for the same local and federated search as regular radio. Follow snapshots
where `radio.request_id` matches this start. To reroll a search already in
progress, send a fresh pick with `replace_request_id` set to that start ID.
It can supersede that liked-radio search until its queue is committed.
Selection errors use the usual rejected command result.
## OpenDeck
The native Rust [OpenDeck integration](../integrations/opendeck/README.md)