mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
222
This commit is contained in:
parent
89b9925e34
commit
779c132a11
4 changed files with 796 additions and 745 deletions
|
|
@ -169,7 +169,7 @@ class AudiobookPlayer extends AudioPlayer {
|
|||
return stop();
|
||||
}
|
||||
if (_currentIndex != 0 && index == _currentIndex) {
|
||||
if (initialPosition != null && initialPosition <= position) {
|
||||
if (initialPosition != null) {
|
||||
seek(initialPosition);
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -228,10 +228,10 @@ class AudiobookChapterProgressBar extends HookConsumerWidget {
|
|||
: currentChapter.end - currentChapter.start,
|
||||
// ! TODO add onSeek
|
||||
onSeek: (duration) {
|
||||
// player.seekInBook(
|
||||
// duration + (currentChapter?.start ?? const Duration(seconds: 0)),
|
||||
// );
|
||||
player.seek(duration);
|
||||
player.seekInBook(
|
||||
duration + (currentChapter?.start ?? const Duration(seconds: 0)),
|
||||
);
|
||||
// player.seek(duration);
|
||||
},
|
||||
thumbRadius: 8,
|
||||
buffered:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue