export settings file

Closes #950

tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-07 20:59:58 +08:00
parent ef1ccabc8a
commit be998b8ee1
11 changed files with 80 additions and 39 deletions

View File

@@ -1451,6 +1451,9 @@ class PlPlayerController {
dynamic pgcType,
VideoType? videoType,
}) async {
if (isLive) {
return;
}
if (!enableHeart || MineController.anonymity.value || progress == 0) {
return;
} else if (playerStatus.status.value == PlayerStatus.paused) {
@@ -1458,9 +1461,6 @@ class PlPlayerController {
return;
}
}
if (isLive) {
return;
}
bool isComplete =
playerStatus.status.value == PlayerStatus.completed ||
type == HeartBeatType.completed;

View File

@@ -58,10 +58,9 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
height: 34,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () async {
onTap: () {
if (player.state.completed) {
await player.seek(Duration.zero);
player.play();
player.seek(Duration.zero).whenComplete(player.play);
} else {
player.playOrPause();
}