Skip to content

Configurable skip/media controls and Windows media overlay (SMTC) integration - #159

Open
NicksonYap wants to merge 1 commit into
rstewa:mainfrom
NicksonYap:main
Open

NicksonYap wants to merge 1 commit into
rstewa:mainfrom
NicksonYap:main

Conversation

@NicksonYap

Copy link
Copy Markdown

Adds configurable player skip amounts and full integration with the Windows System Media Transport Controls (the media overlay shown when using media keys or the volume flyout).

Configurable skip amounts — Settings → Playback controls

  • Separately configurable skip-back and skip-forward durations (5/10/15/30/60 seconds; defaults 10s back / 30s forward).
  • The player's skip buttons now show the configured value (icon + number) with tooltips that reflect the setting, and update live when the setting changes.

Configurable Windows media buttons

  • The overlay's previous/next (and rewind/forward) buttons can either skip by the configured seconds or jump to the previous/next chapter, chosen in Settings.

Windows media overlay (SMTC) integration

  • Migrates from the default MediaPlaybackCommandManager to manual SystemMediaTransportControls control so metadata can update live during playback.
  • Shows the audiobook's title, current chapter, and cover art in the media overlay.
  • The chapter shown updates in real time as playback crosses chapter boundaries (and on manual chapter navigation).
  • Playback status and the overlay's progress/position timeline stay in sync.

Configurable overlay title display — Settings → Playback controls

  • Choose whether the overlay shows the book title or the current chapter name as its primary title (secondary line shows the other, alongside the author).

Refactor

  • Player skip/chapter actions moved from PlaySkipButtonsStack into PlayerViewModel so in-app buttons and the media overlay share the same logic.
  • AudiobookViewModel.ThumbnailPath is now null-safe.

Verified locally (Debug, x64): skip buttons reflect configured amounts and update on setting change; overlay shows cover art, title, and chapter; chapter line updates live during playback and via chapter navigation; the media buttons honor the skip/chapter setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant