M5: Desktop integration #16

Merged
Mett-mit-Zwiebel merged 3 commits from feat/m5-desktop into main 2026-10-29 01:02:02 +01:00
Mett-mit-Zwiebel commented 2026-10-29 00:44:21 +01:00 (Migrated from github.com)

M5: Desktop integration

  • OS media controls (souvlaki): MPRIS on Linux (org.mpris.MediaPlayer2.cushion), SMTC on Windows (HWND of the main window). Title, author, duration, position and a cover (JPEG written to the cache dir and passed as file://). Position ticks are not forwarded; only state changes and seeks are.
  • Next/previous are configurable in the settings: chapter (default) or ±30 s.
  • Tray icon: play/pause, ±30 s, show/hide window, mini player, quit (quit still runs shutdown()).
  • Close to tray, on by default and switchable in the settings. It only hides the window when a tray icon exists.
  • Mini player (/mini, 360×120, optionally always on top). It replaces the main window while open; opened from the player bar or the tray, closed with its expand button or the window's close button.
  • B adds a bookmark at the current position (POST /api/me/item/:id/bookmark); the bookmarks list reloads. Not available for podcast episodes.
  • Shortcut list in the settings; window size and position are remembered (tauri-plugin-window-state).
  • Fedora: libayatana-appindicator-gtk3 added to the README and the fedora CI job.

Tests

  • cargo fmt, clippy -D warnings, pnpm check, pnpm lint: clean. Bindings committed.
  • cargo test against the Docker ABS test server (2.37.2): all pass, incl. new creating_a_bookmark_returns_it, chapter-navigation and config-default unit tests.
  • Started the app on Linux (KDE/Wayland): the MPRIS name is registered and the tray item shows up at the StatusNotifierWatcher.
  • Not tested by hand yet: playback through playerctl (not installed here), tray menu actions, close-to-tray and mini player with a logged-in session, and the Windows SMTC code (CI compiles it only).

Closes #5

🤖 Generated with Claude Code

## M5: Desktop integration - **OS media controls** (`souvlaki`): MPRIS on Linux (`org.mpris.MediaPlayer2.cushion`), SMTC on Windows (HWND of the main window). Title, author, duration, position and a cover (JPEG written to the cache dir and passed as `file://`). Position ticks are not forwarded; only state changes and seeks are. - **Next/previous** are configurable in the settings: chapter (default) or ±30 s. - **Tray icon**: play/pause, ±30 s, show/hide window, mini player, quit (quit still runs `shutdown()`). - **Close to tray**, on by default and switchable in the settings. It only hides the window when a tray icon exists. - **Mini player** (`/mini`, 360×120, optionally always on top). It replaces the main window while open; opened from the player bar or the tray, closed with its expand button or the window's close button. - **`B`** adds a bookmark at the current position (`POST /api/me/item/:id/bookmark`); the bookmarks list reloads. Not available for podcast episodes. - Shortcut list in the settings; window size and position are remembered (`tauri-plugin-window-state`). - Fedora: `libayatana-appindicator-gtk3` added to the README and the fedora CI job. ## Tests - `cargo fmt`, `clippy -D warnings`, `pnpm check`, `pnpm lint`: clean. Bindings committed. - `cargo test` against the Docker ABS test server (2.37.2): all pass, incl. new `creating_a_bookmark_returns_it`, chapter-navigation and config-default unit tests. - Started the app on Linux (KDE/Wayland): the MPRIS name is registered and the tray item shows up at the StatusNotifierWatcher. - **Not tested by hand yet:** playback through `playerctl` (not installed here), tray menu actions, close-to-tray and mini player with a logged-in session, and the Windows SMTC code (CI compiles it only). Closes #5 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.