fix: auto play

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-06 12:08:21 +08:00
parent fee161e99b
commit d59c364ba6
2 changed files with 15 additions and 7 deletions

View File

@@ -1120,6 +1120,7 @@ class VideoDetailController extends GetxController
if (autoPlay.value && videoUrl != null && audioUrl != null) {
isShowCover.value = false;
await playerInit();
videoState.value = LoadingState.success(null);
}
isQuerying = false;
}
@@ -1175,7 +1176,9 @@ class VideoDetailController extends GetxController
// isShowCover.value = false;
// await playerInit();
// }
videoState.value = LoadingState.success(null);
if (autoPlay.value.not) {
videoState.value = LoadingState.success(null);
}
return;
}
@@ -1288,7 +1291,9 @@ class VideoDetailController extends GetxController
// isShowCover.value = false;
// await playerInit();
// }
videoState.value = LoadingState.success(null);
if (autoPlay.value.not) {
videoState.value = LoadingState.success(null);
}
} else {
autoPlay.value = false;
isShowCover.value = true;