mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
123
This commit is contained in:
parent
4a7c592e41
commit
36f14dbd58
4 changed files with 18 additions and 10 deletions
|
|
@ -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)),
|
||||
// );
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue