mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -299,14 +299,14 @@ class AudioController extends GetxController
|
||||
playNext();
|
||||
break;
|
||||
case PlayRepeat.singleCycle:
|
||||
player?.play();
|
||||
_replay();
|
||||
break;
|
||||
case PlayRepeat.listCycle:
|
||||
if (!playNext()) {
|
||||
if (index != null && index != 0 && playlist != null) {
|
||||
playIndex(0);
|
||||
} else {
|
||||
player?.play();
|
||||
_replay();
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -318,6 +318,10 @@ class AudioController extends GetxController
|
||||
};
|
||||
}
|
||||
|
||||
void _replay() {
|
||||
player?.seek(Duration.zero).whenComplete(player!.play);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> actionLikeVideo() async {
|
||||
if (!isLogin) {
|
||||
|
||||
Reference in New Issue
Block a user