mod: 详情页横屏布局(bug很多不要下载!)

This commit is contained in:
orz12
2024-02-08 23:29:42 +08:00
parent 88bc9e3ff9
commit 2ed7d00483
17 changed files with 294 additions and 102 deletions

View File

@@ -241,6 +241,10 @@ class VideoDetailController extends GetxController
plPlayerController.headerControl = headerControl;
}
void setTriggerFullScreenCallback(void Function({bool? status}) callback) {
plPlayerController.setTriggerFullscreenCallback(callback);
}
// 视频链接
Future queryVideoUrl() async {
var result = await VideoHttp.videoUrl(cid: cid.value, bvid: bvid);
@@ -359,7 +363,7 @@ class VideoDetailController extends GetxController
if (result['code'] == -404) {
isShowCover.value = false;
}
if (result['code'] == 87008){
if (result['code'] == 87008) {
SmartDialog.showToast("当前视频可能是专属视频,可能需包月充电观看(${result['msg']})");
} else {
SmartDialog.showToast("错误(${result['code']}${result['msg']}");