修复播放问题

This commit is contained in:
rang 2025-10-25 10:11:50 +08:00
parent a9148f7a14
commit a28547685b
3 changed files with 41 additions and 35 deletions

View file

@ -220,9 +220,10 @@ class AudiobookChapterProgressBar extends HookConsumerWidget {
: currentChapter.end - currentChapter.start,
// ! TODO add onSeek
onSeek: (duration) {
player.seekInBook(
duration + (currentChapter?.start ?? const Duration(seconds: 0)),
);
// player.seekInBook(
// duration + (currentChapter?.start ?? const Duration(seconds: 0)),
// );
player.seek(duration);
},
thumbRadius: 8,
buffered: currentChapterBuffered ?? buffered.data ?? const Duration(seconds: 0),