mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-17 08:51:30 +00:00
Add per-book playback rate to web client #1173
Save playbackRate to mediaProgress via PATCH on speed change. Init from per-book rate with fallback to global user setting. Guard settingsUpdated from overwriting per-book rates. Resolve per-book rate in playLibraryItem before loading.
This commit is contained in:
parent
8bd99a459e
commit
df2db634a7
2 changed files with 35 additions and 4 deletions
|
|
@ -528,7 +528,11 @@ export default {
|
|||
if (this.$refs.audioPlayer) this.$refs.audioPlayer.checkUpdateChapterTrack()
|
||||
})
|
||||
|
||||
this.playerHandler.load(libraryItem, episodeId, true, this.currentPlaybackRate, payload.startTime)
|
||||
// Resolve per-book playback rate for the new item, falling back to current rate
|
||||
const mediaProgress = this.$store.getters['user/getUserMediaProgress'](libraryItemId, episodeId)
|
||||
const playbackRate = mediaProgress?.playbackRate || this.currentPlaybackRate
|
||||
|
||||
this.playerHandler.load(libraryItem, episodeId, true, playbackRate, payload.startTime)
|
||||
},
|
||||
pauseItem() {
|
||||
this.playerHandler.pause()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue