Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-30 17:32:18 +08:00
parent 1ac93d6269
commit f034c24d13
3 changed files with 6 additions and 4 deletions

View File

@@ -105,6 +105,7 @@ class VideoDetailController extends GetxController
// 是否开始自动播放 存在多p的情况下第二p需要为true
final RxBool autoPlay = true.obs;
final videoPlayerKey = GlobalKey();
final childKey = GlobalKey<ScaffoldState>();
PlPlayerController plPlayerController = PlPlayerController.getInstance()
@@ -1087,7 +1088,7 @@ class VideoDetailController extends GetxController
if ((autoPlay.value ||
(plPlayerController.preInitPlayer &&
!plPlayerController.processing)) &&
childKey.currentState?.mounted == true) {
videoPlayerKey.currentState?.mounted == true) {
return playerInit();
}
}