This commit is contained in:
rang 2025-12-10 17:21:59 +08:00
parent 4a7c592e41
commit 36f14dbd58
4 changed files with 18 additions and 10 deletions

View file

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