修改跳过片头片尾位置

This commit is contained in:
rang 2025-10-24 17:02:51 +08:00
parent ab3d5f7e02
commit a9148f7a14
2 changed files with 11 additions and 8 deletions

View file

@ -6,13 +6,13 @@ class SkipStartEnd {
final Duration start;
final Duration end;
final AudiobookPlayer player;
int _index;
// int _index;
final List<StreamSubscription> _subscriptions = [];
final throttler = Throttler(delay: Duration(seconds: 3));
// final StreamController<PlaybackEvent> _playbackController =
// StreamController<PlaybackEvent>.broadcast();
SkipStartEnd({required this.start, required this.end, required this.player}) : _index = 0 {
SkipStartEnd({required this.start, required this.end, required this.player}) {
// if (start > Duration()) {
// _subscriptions.add(
// player.currentIndexStream.listen((index) {