forked from Furumi/furumi-tui
Document what an older device's takeover does to a podcast queue
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2806e679ac
commit
e0624ab7f4
4 files changed
+19
-6
No files matched your search
@@ -175,7 +175,9 @@ When changing it:
|
||||
device and its playback commands are ignored while the queue has episodes;
|
||||
never strip episodes from a queue to make it fit an old peer; an older
|
||||
peer still gets the playback coordination, with the queue redacted
|
||||
(`redact_for_jam`), so its engine does not fail over;
|
||||
(`redact_for_jam`), so its engine does not fail over, and the
|
||||
"Private item" music entries it echoes back in its own states are left
|
||||
out (`drop_echoed_private_items`), never adopted;
|
||||
- apply podcast operations and snapshot sections only through
|
||||
`PodcastStore` (`apply_remote_op`, `apply_snapshot`); never call the
|
||||
podcast store while holding the sync-log connection;
|
||||
|
||||
+7
-1
@@ -249,7 +249,13 @@ owner's liveness only from the owner's own announcements, so an old device
|
||||
that heard nothing would take over by automatic failover after
|
||||
`owner_timeout_ms` and replace the queue. This departs from FRID's
|
||||
`PLAYBACK_PROTOCOL.md` rule 1 ("otherwise send `None`") and is reported to
|
||||
FRID as a contract gap.
|
||||
FRID as a contract gap. An old device that mirrors such a queue drops the
|
||||
`source` its types do not know, so each placeholder becomes a music item
|
||||
titled "Private item"; when it later takes over (Play on it, a paused-startup
|
||||
claim, failover while this device is gone) or sends a command, it announces
|
||||
those. States from devices below v4 are therefore cleaned on receipt
|
||||
(`drop_echoed_private_items`: bare music items with that title and no content
|
||||
id, federated source, artist, release or duration), with a status message.
|
||||
|
||||
Active-device leases and idle timing prevent stale snapshots from immediately
|
||||
taking control after a device reconnects. This provides practical coordination
|
||||
|
||||
+3
-1
@@ -62,7 +62,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
such a queue to them is refused ("needs a Furumi update"), and their
|
||||
playback commands are ignored while the queue has episodes. They still get
|
||||
the playback coordination, with each episode shown as "Private item", so
|
||||
they do not take playback over after two minutes of silence.
|
||||
they do not take playback over after two minutes of silence. When such a
|
||||
device does take over, the "Private item" entries it echoes back as music
|
||||
are left out of the queue here, with a status message.
|
||||
- Jam guests see the host's podcast episodes as "Private item" (no title,
|
||||
feed or address). Guest changes that add, drop or duplicate them, or seek
|
||||
in them, are refused; a guest leaving a Jam drops the placeholders.
|
||||
|
||||
@@ -268,9 +268,12 @@ Podcasts and your connected devices:
|
||||
ignored while the queue has episodes, and they get no podcast data: they
|
||||
see such a queue with "Private item" in place of each episode, so they
|
||||
keep seeing this device as the playing one. An older device still takes
|
||||
over when you choose it as the output (Play on it) or when it starts while
|
||||
this device is paused (`take_paused_on_startup`); this device then shows
|
||||
that device's queue, without the episodes (their saved positions stay).
|
||||
over when you choose it as the output (Play on it), when it starts while
|
||||
this device is paused (`take_paused_on_startup`), or by itself once this
|
||||
device has been closed, asleep or offline for about two minutes. Its queue
|
||||
then has an unplayable "Private item" music entry for each episode; this
|
||||
device shows that queue without them (with a status message), and the
|
||||
episodes' saved positions stay.
|
||||
- **Audio from the publisher.** Every device streams the episode from the
|
||||
publisher's server itself. Furumi peers never pass podcast audio to each
|
||||
other, and nothing is kept after playback.
|
||||
|
||||
Reference in new issue
Block a user