This commit is contained in:
rang 2025-12-09 23:38:51 +08:00
parent 20a3b95edc
commit 4a7c592e41
9 changed files with 112 additions and 102 deletions

View file

@ -23,10 +23,13 @@ class SkipStartEnd {
player.chapterStream.listen((chapter) {
if (chapter != null &&
player.positionInChapter < Duration(seconds: 1)) {
Future.microtask(
() => throttlerStart
.call(() => player.seekInBook(chapter.start + start)),
);
// player.pause();
player.seekInBook(chapter.start + start);
// player.play();
// Future.microtask(
// () => throttlerStart
// .call(() => player.seekInBook(chapter.start + start)),
// );
}
}),
);