mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
opt: video play
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1217,6 +1217,9 @@ class VideoDetailController extends GetxController
|
||||
autoPlay.value = false;
|
||||
isShowCover.value = true;
|
||||
videoState.value = LoadingState.error('视频资源不存在');
|
||||
if (plPlayerController.isFullScreen.value) {
|
||||
plPlayerController.toggleFullScreen(false);
|
||||
}
|
||||
isQuerying = false;
|
||||
return;
|
||||
}
|
||||
@@ -1330,6 +1333,9 @@ class VideoDetailController extends GetxController
|
||||
autoPlay.value = false;
|
||||
isShowCover.value = true;
|
||||
videoState.value = LoadingState.error(result['msg']);
|
||||
if (plPlayerController.isFullScreen.value) {
|
||||
plPlayerController.toggleFullScreen(false);
|
||||
}
|
||||
if (result['code'] == -404) {
|
||||
SmartDialog.showToast('视频不存在或已被删除');
|
||||
}
|
||||
|
||||
@@ -2331,6 +2331,11 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
required dynamic aid,
|
||||
required bool isSeason,
|
||||
}) {
|
||||
if (isSeason && videoDetailController.isPlayAll) {
|
||||
SmartDialog.showToast('当前为播放全部,合集不支持倒序');
|
||||
return;
|
||||
}
|
||||
|
||||
void changeEpisode(episode) {
|
||||
videoIntroController.changeSeasonOrbangu(
|
||||
episode is bangumi.EpisodeItem ? episode.epId : null,
|
||||
|
||||
Reference in New Issue
Block a user