diff --git a/docs-developers/frontend/apple-watch.md b/docs-developers/frontend/apple-watch.md index 5758f10f..ecefa7cf 100644 --- a/docs-developers/frontend/apple-watch.md +++ b/docs-developers/frontend/apple-watch.md @@ -126,6 +126,15 @@ or scrub given only book seconds, it prefers the playing file among tied files. - **A file that fails** stops the book, its span ending where the audio last moved (`lastAdvance`), not at the moment of the failure. +**Resume** (`Resume.plan`, `Core/PlayerRules.swift`) follows the phone's +([Resume protection](playback.md#resume-protection)) on the watch's clock. It moves +these server times back by `clockSkewMs`: the time of the watch's own row, another +device's `updated_at` and a finish's `finished_at`. The skew is 0 until the answer +to a foreground batch measures it (a single-event retry's or a background upload's +never does). Unlike the phone, which weighs the times alone, another device's row +replaces the place here only when it is newer and its version is above the watch's +acknowledged one, and an unfinished row with no device id never does. + **Spans** follow the phone's rules ([Listening spans](playback.md#listening-spans-sync-v2)), except that the watch cuts every 15 s while its last sync answered. A bare move and a move to nowhere are the phone's @@ -136,12 +145,26 @@ when it is that book's and a resume from this watch's own place, not when `Resum server's row (`loadsFromRow`). The move is kept on disk too (`open-span-move.json`, `OpenSpanStore.saveMove`) until a span opens, so a launch that ends before the book plays (a background wake) leaves it to the next. It leaves the store only once that span is stored, and -leaving the account forgets it. +leaving the account forgets it. A move, a Stay or a cut while playing closes the +span into the outbox, and the stored span is replaced by the next one in a single +write (`SpanRecorder.close`'s `clearStore`). **Stay** is the phone's too ([Stay wins](playback.md#stay-wins)): -`SpanRecorder.standBy(..., stay:)`, gated by the cached `/server`'s `listening_stay` (`AppModel.takesStay`), `Spans.carried`, -`Outbox.takesStay` (read as each body is built, the background upload's too), and -`AckRules.staysHeld` with `OfferThrottle.shouldShow(..., stayHeld:)`. +`SpanRecorder.standBy(..., stay:)`, gated by the cached `/server`'s `listening_stay` +(`AppModel.takesStay`), and `Spans.carried`. `Outbox` reads the flag as it builds each +request, a single-event retry's and the background upload's too, and sends a queued +`stay` as a `jump` while it is off. Unlike the phone, a `stay` refused alone with a `400` is not tried again as a +`jump`. It moves to the couldn't-sync list as `invalid`, as a v2.6.0 server's +`rejected` `invalid` does. + +**Offers** (`Core/AckAndOffer.swift`) follow the phone's +[throttles](playback.md#offering-another-devices-place-sync-v2), with two +differences. There is no held-listen repeat: only a held Stay, sent as a `stay`, offers +the kept place again at once (`AckRules.staysHeld`, `OfferThrottle.shouldShow(..., +stayHeld:)`), so a Stay that went as a `jump` earns nothing. And the offer is a sheet +with no timeout. One swiped away unanswered (`AppModel.ignore`) has its key noted in the +same `answered` list as Jump and Stay (`ignoreOffer`, nothing acknowledged), so it is +not offered again. **Addresses.** The home rule is the [phone's](connect-and-addresses.md#the-pick-rule-srclibserver-addressts): no token before the `server_id` probe. The pick is dropped on backgrounding and probed again while active. @@ -151,7 +174,9 @@ The background upload goes to the away or paired address, never home **Background sync.** Going to the background cuts the span. The watch hands the outbox's first chunk to a background upload carrying `clock_offset`, not `sent_at`, and adds a best-effort app refresh flush. Replays are safe (event ids are the idempotency keys). An answer that arrives on a -wake is applied like a foreground one, for the account it was sent for. In the foreground the +wake is applied like a foreground one, for the account it was sent for. The upload's tag +(`SyncUploadTag`) records that account, the event ids and whether the body sent a `stay` +(`sentStay`), so the wake judges a held Stay by what was sent. In the foreground the watch sends the outbox at launch, on the foreground, after each closed span, and every 60 s while events wait. It never gates on `NWPathMonitor`, which was seen reporting `unsatisfied` while `URLSession` worked. It tries, and a failure with no answer means offline. diff --git a/docs-developers/frontend/book-page.md b/docs-developers/frontend/book-page.md index 646729d8..538d20f3 100644 --- a/docs-developers/frontend/book-page.md +++ b/docs-developers/frontend/book-page.md @@ -147,7 +147,9 @@ footer. The place is measured from where the primary would play from (`resumePosition`). The line says "On another device" when the server has no name. **Play from there** answers the offer (`answerOffer`) and plays the book there (`{ at: { position } }`). Answering acknowledges the row's version and notes the -place, so it isn't offered again. Nothing shows on a server without the flag. +place, so it isn't offered again. Nor is a place whose toast timed out +(`settledOffers`), and the line never repeats a held offer +([the throttles](playback.md#offering-another-devices-place-sync-v2)). Nothing shows on a server without the flag. `HeroActions` lays the row out after the primary: diff --git a/docs-developers/frontend/offline.md b/docs-developers/frontend/offline.md index e9ca91fb..55c35866 100644 --- a/docs-developers/frontend/offline.md +++ b/docs-developers/frontend/offline.md @@ -763,8 +763,10 @@ end ([What a kill leaves behind](playback.md#what-a-kill-leaves-behind)). On the - when it last synced (`lastSyncAt`); - the "couldn't sync" list: rejected events with their reason, kept 30 days, at most 100; -- the server's clock skew from the answers' `server_time` (`clockSkewMs`), which - `progress-sync` reads through `stored-skews.ts`. +- the server's clock skew (`clockSkewMs`), which `progress-sync` reads through + `stored-skews.ts`. A sync answer whose request times are known measures it + (`clockSkewOf`): its `server_time` minus the midpoint of sending and answering. + Until a connection has one, the skew is 0. A progress `GET` never measures it. **Locking.** The read-modify-writes of the three documents run in a serial queue and under `tabLock` (`src/lib/tab-lock.ts`), so two tabs can't lose each other's events. @@ -793,7 +795,11 @@ A queued span whose `start` is `stay` goes as a `jump` while the connection's `/server` doesn't say `listening_stay` (`eventsForServer`, on every send path: the batch, one by one, and the web page's keepalive), and the stored event keeps its `stay` and its id -([Stay wins](playback.md#stay-wins)). +([Stay wins](playback.md#stay-wins)). The flag is read as each request is built. A +stale cached `true` can still let a `stay` through: a v2.6.0 server answers it inside +a `200` as `rejected` `invalid`, so it moves to the couldn't-sync list like any +rejected event, and a server that refuses the whole request with a `400` gets it +again as a `jump` (below). Each answer is handled like this: @@ -803,8 +809,10 @@ Each answer is handled like this: kept for has its version acknowledged (`ackVersion`, never lowered). That is `keptMine`: applied, or diverged with `kept: "event"`, and the row's `device_id` is this device's. The place reconcile is told of the rows (`onSyncAnswer`) so it can - offer another device's place. A `stay` that came back `diverged` `kept: "stored"` - (`staysHeld`) has the kept place offered at once. + offer another device's place. `heldListens` identifies the books for which the + server kept its row over a listen, using each event's start as sent. The + [player's offer rules](playback.md#offering-another-devices-place-sync-v2) + determine when that place appears again. - An answer that arrives while the cached `listening_sync` flag is `false` makes the query cache ask `/server` again. The server took the events, so the cached answer is older than the server. @@ -889,11 +897,13 @@ place was saved on a download's older file order. The server does the same with span's file places. The local resume works on any server; the server's remap needs `listening_sync`. -A file place is used only when it is not older than the record it is for -(`holdsFilePlace`). The check allows 5 s of slack, widened by how far the -connection's server clock is known to be ahead (the stored `clockSkewMs`). So a device -whose clock runs slow keeps its file place, and a mirror that lost writes never -resumes at a stale file. +A file place is used only when it belongs to the record the resume picked +(`holdsFilePlace`). That is the same place (within 1 s), or a record of the same +device in the same finished state that is at most 5 s newer than the file place. +Both are compared on this device's clock, with a server timestamp moved back by the +stored `clockSkewMs`, 0 until a sync answer has measured it. So once the skew is +known, a server clock that runs ahead keeps a timely file place, and a mirror that lost +writes never resumes at a stale file. ### Taking a finish back diff --git a/docs-developers/frontend/playback.md b/docs-developers/frontend/playback.md index 9d03c60c..1801334a 100644 --- a/docs-developers/frontend/playback.md +++ b/docs-developers/frontend/playback.md @@ -783,10 +783,22 @@ the UI sees during it is `loading`. The player enforces "never restart an in-progress book from 0" twice: once on the way in and once on the way out. -**On the way in: `loadInitialProgress` (`progress-sync.ts`).** It returns a -discriminated `ResumeLookup` that reconciles three sources by `updated_at`, newest -wins: the server's record, a **durable local mirror**, and the offline replay -queue. The result is one of: +**On the way in.** `loadInitialProgress` (`progress-sync.ts`) returns a +discriminated `ResumeLookup`. `resumeLookupOf` reconciles three sources by +`updated_at`, and the newest wins. The sources are the server's row, a **durable +local mirror** and the offline replay queue. All three are compared on this +device's clock. A server timestamp (the live row, or a mirror record marked +`server_clock`) is moved back by the connection's known skew (`knownSkew`, the +outbox's `clockSkewMs`, [stored per connection](offline.md#the-three-storage-documents)). +That skew is 0 until a sync answer has measured it, so before the first one a device +whose clock is off from the server's compares the times as they are. A tie prefers the +server's row, then the mirror. + +With nothing pending for the book (no queued save, no events waiting), a finished +server row beats a newer unfinished mirror record when its `finished_at` is newer +on that clock or its version is above the device's `ack_version`. The book then +starts again. Whether the resume plays from the saved file place is +[Resume by file](offline.md#what-the-listener-sees). The result is one of: - `progress`: a saved position exists somewhere. `playBook` resumes from it and restores the saved playback speed. The exception is a finished book, which @@ -905,10 +917,11 @@ stale place is never written. The reconcile moves only when the server's record meets all of these: -- another `device_id` wrote it; -- it is newer than anything this device's mirror knows for the book; -- it is not finished; -- it is more than `MOVE_THRESHOLD_S` (30 s) from the engine's place. +- Another `device_id` wrote it. +- If the mirror holds this device's own save, the row is newer on the device + clock. See [Resume protection](#resume-protection). +- The row is unfinished and its position is above zero. +- Its position is more than `MOVE_THRESHOLD_S` (30 s) from the engine's place. A seek of the listener's own while the check was out wins (`localMoveCount`). The move is `seekBook`, so the resume floor and the undo chip see it, and a toast @@ -925,6 +938,7 @@ On a server with `listening_sync`, the server never moves a place back silently. span made without seeing the stored row is `diverged`. The server keeps the further place, answers the other one, and keeps it on the row as `other_place` ([`POST /api/v1/me/listening/sync`](../server/api/reference.md#post-apiv1melisteningsync)). +A Stay is the exception ([Stay wins](#stay-wins)). The player **offers** such a place and never moves to it by itself. `offerOf(row, deviceId, ackVersion, enginePosition, answered)` (pure) finds it, in @@ -941,34 +955,42 @@ order: were at {place}. Jump there?`. `describePlace` gives the chapter and the time into it, or "another device" when the server has no name. The toast has two answers: -- **Jump** acknowledges the row, then calls `seekBook` there. The next span is a - `jump`, or `moved_back` when the place is behind. -- **Stay**, the close button, acknowledges, then calls `standByPlace`, which sends - this device's place at once so the server applies it over the other - ([Stay wins](#stay-wins)). - -A toast that times out acknowledges nothing. It only notes the place's key -(`ignoreOffer`), so the same place is not offered again while this device's next -spans still never move the other place back. - -The player checks for an offer: - -- on each sync answer for the loaded book (`onSyncAnswer`), never moving a playing - book; -- on the foreground, reconnect and picked-up checks above, where `placeToMoveTo` - finds nothing to move to. - -Each place is shown once per launch, and a device's places at most once per book -every 10 minutes (`OFFER_REPEAT_MS`), since a device that plays on sends a new -place with every span. A Stay that another device's Stay held is the one exception -to the 10 minutes ([Stay wins](#stay-wins)). The book page shows the same offer as a line -(`ListeningOfferLine`, [Book page](book-page.md#the-primary-action-and-the-action-row)), -on a server with the flag only. - -On a server without the flag, the auto-move with Undo above stays. Its only offer is +- **Jump** closes the preceding span, acknowledges the row and calls `seekBook`. + The move's reason is `moved_back` for a move more than one second back, else + `jump`. Playing, the new span starts with it. Paused, the move is sent at once as a + span of its own and the next play starts with the same reason. +- **Stay**, the close button, acknowledges the row and calls `standByPlace` to + send this device's place. See [Stay wins](#stay-wins). + +A toast that times out (12 s) acknowledges nothing. `ignoreOffer` only notes its +key in the mirror's `ignored` list, while Jump and Stay note theirs in `answered` +([the mirror's fields](state-and-data.md#progress-sync-srcplaybackprogress-syncts)). + +The player checks for an offer on each sync answer for the loaded book +(`onSyncAnswer`, never moving a playing book), and on the foreground, reconnect and +picked-up checks above when `placeToMoveTo` finds nothing to move to. The throttles: + +- A key is shown once per launch, and a device's places at most once per book every + 10 minutes (`OFFER_REPEAT_MS`), since a device that plays on sends a new place + with every span. +- A key in `answered` or `ignored` is not offered again, on the toast or on the + book page's line (`settledOffers`). +- **A held listen** lifts the throttles for the row the server kept. `heldListens` + names the books where the server kept its row over a `listen` this device sent + (`diverged` with `kept: "stored"`, or `not_applied` with `resume_behind`). When the + answer to the listening of a new play or move here holds the row again, the toast + offers it again, even when its key timed out or the 10 minutes have not passed. The + row must still be unfinished, at a version this device has not acknowledged, and + more than 30 s away. Save ticks alone keep the throttles. A held + `stay` offers a new kept place at once ([Stay wins](#stay-wins)). An `answered` + key is never offered again, and the book page's line never repeats an offer. +- Against a v2.6.0 server the repeat was not seen: after a timeout, a new play or + seek brought no offer back. The first offer shows as usual. + +On a server without `listening_sync`, the auto-move with Undo above stays. Its only offer is the loaded book's toast for a save the [replay guard](state-and-data.md#the-replay-guard) held (`onHeldSave`, -`offerLoadedPlace(..., { held: true })`). There **Stay** also lifts the guard for the +`offerLoadedPlace` with `held: true`). There **Stay** also lifts the guard for the session and saves this device's place at once (`saveLoadedPlace`). That save and the session's later ones go through even when the other device has saved again since the offer. A timed-out toast lifts nothing. The book page shows no line there. @@ -980,7 +1002,8 @@ events** instead of saves, and the capture only keeps this device's mirror. `usesListeningSync` decides which path applies. It reads the flag from the cached `/server` answer, which a launch seeds from [the kept `/server` answer](state-and-data.md#the-kept-server-answer-srcapiserver-snapshotsts). -While the flag is unknown, the player sends events too (see +While the flag is unknown, the player records events too. A `404` or `405` that +the server's own `/server` confirms turns them into `PUT` saves (`rollBack`, see [the outbox](offline.md#listening-sync-the-outbox)). A span runs from where playing began to where it ended. It carries: @@ -1031,9 +1054,10 @@ A span's life: - A move to where the place already is, in the same file (`movesNowhere`: Previous at the book's start), is no move. The span goes on and no event says it. A book with unknown file lengths starts every file at 0, so the file has to - match too. Two cases still count as a move: the last move went elsewhere (a seek - still on its way reads as where it left), or the engine moved first with nothing - to compare (a paused lock-screen move, `from: null`). + match too. A paused lock-screen move still counts when the engine moved first + and there is no earlier position to compare (`from: null`). A move made while a + seek is still landing is measured from that seek's target + ([While a seek lands](#while-a-seek-lands)). - The Apple Watch and Wear OS share both rules (`Spans.isBareMove`, `Spans.movesNowhere`). - The end of the book then sends `finish` once (`finishAfter`). The outbox @@ -1056,7 +1080,11 @@ A span's life: [Taking a finish back](offline.md#taking-a-finish-back). - Either finish is dated after its span's end is stamped (`takeSpan`). The server applies a batch in time order, with request order only breaking ties, so a - finish dated earlier would be applied before the book's last span. + finish dated earlier would be applied before the book's last span. A seek still + landing ends that span at its target, with the seek's reason. The finish clears + the reason, so a span of a book that plays on past it starts with `resume`. + - **Listen again** on the finished book sends `unfinish`, then a `restart` span + from 0. - The web's `pagehide` closes the span and sends what waits with `keepalive`. - **Offline**, the tick leaves the span open until it is an hour long (`MAX_SPAN_MS`), so a day offline is a handful of events. Offline means the @@ -1091,6 +1119,32 @@ The events go to the outbox and are sent from there history spans, because the server writes history from the listening, and saves no `PUT`. +#### While a seek lands + +`store.ts` keeps a seek whose engine call is out as `pendingSeek` (the track and +the seconds into it). A second seek closes the first one's span at its target and +measures its direction from there. So a seek from 0 to 30 s and back to 0 sends +`moved_back` even while the engine still reports 0. Relative skips add up from the +pending target too, across files as well. A Retry whose reload briefly reports 0 +is read the same way. + +Until the engine takes the call, no periodic save or cut runs. A pause, a +background save and a hand-over to another tab save nothing then. A stop, a book +switch, a Mark as finished and a Cast background checkpoint save the target +(`persist({ leaving: true })`). The checkpoint leaves the span alone. + +Once the engine takes the call, saves use the target until a position report +shows it. A report that changed and sits at the target, or ahead of it in the same +file by no more than the time played since, shows it. A refused seek gives the +place back to the newest earlier seek still out, unless a later seek has landed. + +A call still out after 10 s (`ASK_SETTLE_MAX_MS`), while reports show the engine +playing elsewhere, was never taken. `observeSeek` drops it. The span opened at the +target ends there, and a new span goes on from the engine's place (a move), so neither +span claims audio nobody heard. If that call lands after all, with no ask since, +it is the listener's move (`landGivenUpSeek`). The span moves to the target and +the resume floor is lowered to it. + ### Stay wins A Stay is an explicit choice. On a server with `listening_stay`, the server applies @@ -1119,9 +1173,10 @@ the start as `invalid`. none open leaves it waiting. - **The flag gone.** The outbox sends a queued `stay` as a `jump` ([the outbox](offline.md#listening-sync-the-outbox)). -- **A Stay held by another.** This device's `stay` that comes back `diverged` - `kept: stored` means another device's Stay holds the row (`staysHeld`). The kept - place is offered at once (`offerLoadedPlace`'s `stayHeld`), still once a launch +- **A Stay held by another.** This device's `stay`, as sent, that comes back + `diverged` `kept: stored` means another device's Stay holds the row. The kept + place is offered at once, past the 10 minutes + ([the throttles](#offering-another-devices-place-sync-v2)), still once a launch per place. The Apple Watch and Wear OS do the same @@ -1280,9 +1335,14 @@ nothing moves. Another device's record is left to the its every save and span. A seek that has not settled within 5 s (`TAB_MOVE_MAX_MS`) counts as refused too, so it stops holding the play's spans and saves. If it lands after all, the tab takes it then - (`landTabPlaceLate`): the floor goes to the place and the span opens again - there, so it never covers audio nobody heard. Not when the listener moved or - another book started meanwhile. + (`landTabPlaceLate`), before that report's save tick can cut the span. The floor + goes to the place and the span opens again there, so it never covers audio + nobody heard. Not when the listener moved or another book started meanwhile. + Playing on until the engine reaches the place does not count as landing. +- On Cast, the receiver can report a move before it reports its position. A Cast + move to the place counts as that late landing within 10 s (`ASK_SETTLE_MAX_MS`) + of the ask, or at any time once the call has resolved. Otherwise a move there is + the listener's own. - A book switch drops a move still out (`switchBook` clears `catchingUp`), so it holds none of the next book's saves or spans. diff --git a/docs-developers/frontend/reader.md b/docs-developers/frontend/reader.md index 7bbba331..9e84e1b1 100644 --- a/docs-developers/frontend/reader.md +++ b/docs-developers/frontend/reader.md @@ -450,8 +450,11 @@ only when no row was ever seen. before a Jump, sent on the place jumped to, can't move that place back. Sent on 0, it diverges, and the server keeps the further place. - **The answer's `seen`** also counts the very version this device acknowledged, - since one version is one write. A late answer carrying a row already adopted - never offers it again. + since one version is one write. On Jump or Stay, `ReaderScreen` marks its answer + `seen` at once, before the mirror write ends. Its `latestAnswer` reducer drops an + older answer and keeps that version seen when a slow save answers it again, so a + late answer carrying a row already adopted never offers it again. A newer version + can still be offered. - **The offer** (`jumpOffer`) is judged against the page on screen. When a save's answer kept a row this device never saw, whose place is elsewhere than the one on screen (another CFI, at least 1% of the book away, `SAME_PLACE`), ahead or behind, a non-blocking card says `On {device} you were at {percent}%. Jump there?` with diff --git a/docs-developers/frontend/state-and-data.md b/docs-developers/frontend/state-and-data.md index 7ccd1910..2e04b147 100644 --- a/docs-developers/frontend/state-and-data.md +++ b/docs-developers/frontend/state-and-data.md @@ -2140,13 +2140,16 @@ The offline-safe write path for listening progress: - **Sync v2 fields on the mirror.** A mirror record also keeps: - the playing file and the seconds into it (`file`, `file_pos`), for the resume by file; - - on a `listening_sync` server, the version of the book's server row that this - device has acknowledged (`ack_version`, never lowered; `ackVersion`), and the - offers it has answered (`answered`, with `device_id|updated_at` keys; - `answerOffer`). - - `ack_version` and `answered` are kept across captures, and a `PUT` never sends - them. `ack_version` is what a listening span sends as its `base_version`. It is + - on a `listening_sync` server, the highest version the device has acknowledged + for the book (`ack_version`) and two lists of `device_id|updated_at` keys. + `answerOffer` records choices in `answered`. `ignoreOffer` records timeouts + in `ignored`. Each list keeps up to 20 keys. + + `ack_version`, `answered` and `ignored` stay in the mirror across captures, and a + legacy `PUT` omits them. The file place is kept across captures only while it holds + the new record's place (`holdsFilePlace`, + [Resume by file](offline.md#what-the-listener-sees)). + `ack_version` is what a listening span sends as its `base_version`. It is set when a sync answer kept this device's event, when a resume or an explicit start takes a server row, when the place reconcile moves to one, and when an offer is answered ([the outbox](offline.md#listening-sync-the-outbox)). diff --git a/docs-developers/frontend/wear-os.md b/docs-developers/frontend/wear-os.md index 7146cea8..a1019d61 100644 --- a/docs-developers/frontend/wear-os.md +++ b/docs-developers/frontend/wear-os.md @@ -173,9 +173,10 @@ Media3 1.9.0 opens neither. an unsuitable output or suppressed-too-long ends the span where the audio last moved. A transient focus loss closes the span but keeps the wish to play. -Spans, ticks, the pull before play, the offer and its throttles, the bare move and the move to -nowhere, and Stay are the Apple Watch's (`SpanRecorder.kt`, `Outbox.kt`, `PlayerEngine.stay`; see -[Stay wins](playback.md#stay-wins)). +Resume, spans, the pull before play, the offer and its throttles, the bare move and the move +to nowhere, and Stay with its outbox rules are the Apple Watch's (`PlayerRules.kt`, +`SpanRecorder.kt`, `AckAndOffer.kt`, `Outbox.kt`, `PlayerEngine.stay`; see +[Apple Watch](apple-watch.md#playing-and-syncing)). ## Storage and identity diff --git a/docs-users/listening/book-page.md b/docs-users/listening/book-page.md index 62aa2e08..1c35ebcc 100644 --- a/docs-users/listening/book-page.md +++ b/docs-users/listening/book-page.md @@ -22,7 +22,7 @@ A slim line above the title shows the book's folders on your server. Tap one to ## Listening and the buttons -The big button does what you most likely want: **Start listening**, **Resume**, **Listen again** for a finished book, or **Pause**. Resume never starts the book over. +Tap **Start listening** to begin a book or **Resume** to carry on where you left off. While the book plays, the button changes to **Pause**. On a phone it opens the [full player](full-player.md). On a tablet or computer the book plays under the [player bar](playback.md#the-mini-player-and-the-player-bar). @@ -35,7 +35,7 @@ Beside it: - **Add to collection**. On a phone it's in the **More** menu. - **More** (**...**): **Send to watch**, **Mark as finished** or **Mark as not finished**, and **More in this series**. -If you listened further on another device, a line under the buttons offers that place, such as *"On Apple Watch: Chapter 12, 4:10 ยท Play from there"*. See [Listening on more than one device](playback.md#listening-on-more-than-one-device). +If another device has a different place, a line under the buttons can show its chapter and time. Tap **Play from there** to listen from that place. See [Listening on more than one device](playback.md#listening-on-more-than-one-device). ![A book's page offering another device's place, with Play from there](/img/screenshots/web-player/book-place-offer.png) @@ -45,7 +45,9 @@ If you're an admin and your server has a [Bridge](../admin/bridge.md), a book th ![A finished book's page: the Finished badge with its date, the stars and Listen again](/img/screenshots/web-player/book-finished.png) -A finished book shows **Finished** with the date. If your server keeps ratings, tap a star to rate it. It's the same rating as on the [end credits](end-of-book.md#the-end-credits). +A finished book shows **Finished** with the date. Tap **Listen again** to clear the finished mark and play from the beginning. + +If your server keeps ratings, tap a star to rate the book. It's the same rating as on the [end credits](end-of-book.md#the-end-credits). ## About this book diff --git a/docs-users/listening/playback.md b/docs-users/listening/playback.md index eba248ad..701ce4f2 100644 --- a/docs-users/listening/playback.md +++ b/docs-users/listening/playback.md @@ -56,6 +56,8 @@ Each device tells the server what you listened to: from where to where, and when - **Finished stays finished**, unless you start the book again or [mark it as not finished](end-of-book.md#mark-a-book-finished-yourself). - **Listening counts when it happened.** Offline listening shows in your history, Journal and stats at the time you listened, even if it syncs days later. +If you let the question go without choosing, your place stays where it is. If the server keeps the other device's place over what you listen to next, the app or web player can ask again after you press play or skip. Once you choose **Jump** or **Stay**, it doesn't ask about that place again. + Until it reaches the server, your listening waits on the device. Home says how many listens are waiting, and your [account page](account.md#listening-sync) shows the details. **Places from Audible.** If your admin has turned on [Audible sync](../admin/audible.md#syncing-listening-places) for your Audible account, Audible counts as one more device. A place further on in Audible reaches you within about 15 minutes. Your place here goes back to Audible a few minutes after you stop. It never moves your place back. @@ -109,7 +111,8 @@ Many such books can get real chapters, from the community database or from your - **One tab plays at a time in a browser.** Start playing in a second tab and the first one pauses and says **Playing in another tab**. Press play there to take it back. With the same book in both tabs, the tab you return to carries on where the other got to. Tabs signed in to different servers or accounts can play at once. Your other devices and the apps aren't paused. - **Older servers** don't combine listening from several devices. The app saves your place as before, and the protections in [Your position follows you](#your-position-follows-you) still apply. On some, **Mark as finished** needs a connection. -- **When Stay doesn't win.** It doesn't beat listening that went on more than two minutes after it, such as when you chose Stay offline a while ago. It doesn't beat a change made since, such as marking the book finished. Then the usual rules above apply. If another device's Stay got there first, you're asked again straight away. On a server before 2.7, Stay wins only if the other device hasn't played on since your device asked, or your place is further on. +- **When Stay doesn't win.** It doesn't beat listening that went on more than two minutes after it, such as when you chose Stay offline a while ago. It doesn't beat a change made since, such as marking the book finished. Then the usual rules above apply. If another device's Stay got there first, you're asked again straight away. +- **On a server before 2.7**, Stay wins only if the other device hasn't played on since your device asked, or your place is further on. A question you let go may not come back when you press play or skip, so choose while it shows. - **MKA books.** An `.mka` book with MP3 inside plays like any MP3 book when your server has ffmpeg (see [Supported formats](../getting-started/organizing-your-library.md#supported-formats)). On the very first play of a large one, a jump may not land exactly until the server has finished preparing it. - **MP3 files recorded at a varying bitrate.** Skips, seeks and chapter jumps land at the place the player shows. If a file holds less audio than its listed length, playback stops with an error where its audio ends, instead of running on into the next file, and the book isn't marked finished. Move back into the file, or on to the next one, then press play or **Retry**. - **A book that stopped with an error.** You can still skip, seek or pick a chapter, in the app or on the lock screen. The player shows the new place, and play or **Retry** loads the book there.