mod: partial revert

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-06 13:15:39 +08:00
parent d59c364ba6
commit d0046d0faf
3 changed files with 19 additions and 37 deletions

View File

@@ -294,10 +294,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
plPlayerController = videoDetailController.plPlayerController;
videoDetailController.isShowCover.value = false;
await videoDetailController.playerInit(autoplay: true);
videoDetailController.autoPlay.value = true;
videoDetailController.videoState.value = LoadingState.success(null);
plPlayerController!.addStatusLister(playerListener);
plPlayerController!.addPositionListener(positionListener);
await plPlayerController!.autoEnterFullscreen();
videoDetailController.autoPlay.value = true;
}
// // 生命周期监听
@@ -1071,8 +1072,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
() => videoDetailController.videoState.value is! Success
? const SizedBox.shrink()
: !videoDetailController.autoPlay.value ||
plPlayerController == null ||
plPlayerController!.videoController == null
plPlayerController?.videoController == null
? const SizedBox.shrink()
: PLVideoPlayer(
plPlayerController: plPlayerController!,