diff --git a/lib/common/widgets/list_sheet.dart b/lib/common/widgets/list_sheet.dart index f7040717..0db50c52 100644 --- a/lib/common/widgets/list_sheet.dart +++ b/lib/common/widgets/list_sheet.dart @@ -127,7 +127,9 @@ class _ListSheetContentState extends State { ? episode.bvid : widget.bvid, episode.cid, - episode.aid, + episode.runtimeType.toString() == "EpisodeItem" + ? episode.aid + : widget.aid, episode is video.EpisodeItem ? episode.arc?.pic : episode is bangumi.EpisodeItem diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 3932c173..9f24b553 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -88,6 +88,8 @@ class VideoDetailController extends GetxController late String cacheSecondDecode; late int cacheAudioQa; + PlayerStatus? playerStatus; + @override void onInit() { super.onInit(); diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index f6f24eaf..8e552614 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -306,6 +306,9 @@ class _VideoDetailPageState extends State ScreenBrightness().resetScreenBrightness(); + videoDetailController.playerStatus = + plPlayerController?.playerStatus.status.value; + /// 开启 if (setting.get(SettingBoxKey.enableAutoBrightness, defaultValue: true) as bool) { @@ -347,6 +350,10 @@ class _VideoDetailPageState extends State !videoDetailController.isShowCover.value; await videoDetailController.playerInit(autoplay: autoplay); + if (videoDetailController.playerStatus == PlayerStatus.playing) { + plPlayerController?.play(); + } + /// 未开启自动播放时,未播放跳转下一页返回/播放后跳转下一页返回 videoIntroController.isPaused = false; // if (autoplay) {