M6: Listening (sleep timer, auto-rewind, bookmarks, speed per book, EQ presets, autoplay) #17

Merged
Mett-mit-Zwiebel merged 3 commits from feat/m6-listening into main 2026-10-29 01:33:26 +01:00
Mett-mit-Zwiebel commented 2026-10-29 01:25:01 +01:00 (Migrated from github.com)

Milestone M6: the listening toolbox.

What's in it

  • Sleep timer: 5/10/15/30/45/60/90 min or end of chapter (end of book without chapters). It runs in Rust, so it also works with the window in the tray. Minute timers count only while playing. Optional fade-out over the last 10 s (setting, off by default). A chapter-end timer follows seeks, and when it fires at the end of a book, nothing autoplays.
  • Auto-rewind: on resume after a pause; none under 10 s, then growing logarithmically from rewindMin (2 s) to rewindMax (30 s, after 1 h). Also applies when resuming from the server position, using the progress' lastUpdate. Seeking while paused skips it.
  • Bookmarks: add (button or B), rename (inline) and delete in the side panel. New API calls: PATCH /api/me/item/:id/bookmark, DELETE …/bookmark/:time.
  • Speed per book: stored locally in SQLite (speeds table, survives logout). Podcasts share one speed per podcast. New books start at the "default speed" setting.
  • Equalizer: popover in the player bar with built-in presets (Flat, Voice boost, Bass boost, Reduce bass, Treble boost, Loudness), 10 band sliders and saved user presets. One global setting, restored on start.
  • Up next: when a book ends, the next unfinished book in the series (or the next unplayed episode) appears in an "Up next in 10 s" card with Play now / Cancel, and starts on its own when the countdown runs out (also from the tray). The mini player shows the countdown.
  • Settings: a Listening section (auto-rewind on/off + min/max, default speed, sleep fade-out).

Tests

  • Unit: rewind curve and settings, chapter-end target, time-timer view, EQ gain normalization and presets, speed table surviving clear_scope, M6 settings defaults on old configs.
  • Live (Docker/Podman ABS 2.37.2): new bookmarks_can_be_renamed_and_deleted; all existing live tests pass.
  • pnpm check, pnpm lint, cargo fmt --check, cargo clippy -D warnings, bindings committed.
  • UI checked in a browser preview with mocked IPC (player bar, sleep menu, EQ popover, bookmark rename, autoplay card, settings). Not run in the real Tauri app with audio yet: the sleep timer, fade-out, auto-rewind and the autoplay countdown still need a manual test there.

Closes #6

🤖 Generated with Claude Code

Milestone M6: the listening toolbox. ## What's in it - **Sleep timer**: 5/10/15/30/45/60/90 min or end of chapter (end of book without chapters). It runs in Rust, so it also works with the window in the tray. Minute timers count only while playing. Optional fade-out over the last 10 s (setting, off by default). A chapter-end timer follows seeks, and when it fires at the end of a book, nothing autoplays. - **Auto-rewind**: on resume after a pause; none under 10 s, then growing logarithmically from `rewindMin` (2 s) to `rewindMax` (30 s, after 1 h). Also applies when resuming from the server position, using the progress' `lastUpdate`. Seeking while paused skips it. - **Bookmarks**: add (button or `B`), rename (inline) and delete in the side panel. New API calls: `PATCH /api/me/item/:id/bookmark`, `DELETE …/bookmark/:time`. - **Speed per book**: stored locally in SQLite (`speeds` table, survives logout). Podcasts share one speed per podcast. New books start at the "default speed" setting. - **Equalizer**: popover in the player bar with built-in presets (Flat, Voice boost, Bass boost, Reduce bass, Treble boost, Loudness), 10 band sliders and saved user presets. One global setting, restored on start. - **Up next**: when a book ends, the next unfinished book in the series (or the next unplayed episode) appears in an "Up next in 10 s" card with Play now / Cancel, and starts on its own when the countdown runs out (also from the tray). The mini player shows the countdown. - **Settings**: a Listening section (auto-rewind on/off + min/max, default speed, sleep fade-out). ## Tests - Unit: rewind curve and settings, chapter-end target, time-timer view, EQ gain normalization and presets, speed table surviving `clear_scope`, M6 settings defaults on old configs. - Live (Docker/Podman ABS 2.37.2): new `bookmarks_can_be_renamed_and_deleted`; all existing live tests pass. - `pnpm check`, `pnpm lint`, `cargo fmt --check`, `cargo clippy -D warnings`, bindings committed. - UI checked in a browser preview with mocked IPC (player bar, sleep menu, EQ popover, bookmark rename, autoplay card, settings). Not run in the real Tauri app with audio yet: the sleep timer, fade-out, auto-rewind and the autoplay countdown still need a manual test there. Closes #6 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.