mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
修改跳过片头片尾位置
This commit is contained in:
parent
ab3d5f7e02
commit
a9148f7a14
2 changed files with 11 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue