mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: auto play
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -59,9 +59,12 @@ class MediaController extends CommonController {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<LoadingState> customGetData() => UserHttp.userfavFolder(
|
||||
pn: 1,
|
||||
ps: 5,
|
||||
mid: mid,
|
||||
);
|
||||
Future<LoadingState> customGetData() {
|
||||
mid ??= GStorage.userInfo.get('userInfoCache')?.mid;
|
||||
return UserHttp.userfavFolder(
|
||||
pn: 1,
|
||||
ps: 5,
|
||||
mid: mid,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user