diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index 25770322..280d8f24 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -359,12 +359,14 @@ class _VideoDetailPageState extends State videoDetailController.autoPlay.value = !videoDetailController.isShowCover.value; if (videoDetailController.videoUrl != null) { - await videoDetailController.playerInit(); + await videoDetailController.playerInit( + autoplay: videoDetailController.playerStatus == PlayerStatus.playing, + ); } - if (videoDetailController.playerStatus == PlayerStatus.playing) { - plPlayerController?.play(); - } + // if (videoDetailController.playerStatus == PlayerStatus.playing) { + // plPlayerController?.play(); + // } /// 未开启自动播放时,未播放跳转下一页返回/播放后跳转下一页返回 videoIntroController.isPaused = false;