mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 可否增加打开视频自动全屏的功能 issues #37
This commit is contained in:
@@ -73,6 +73,7 @@ class VideoDetailController extends GetxController
|
||||
// 默认记录历史记录
|
||||
bool enableHeart = true;
|
||||
var userInfo;
|
||||
late bool isFirstTime = true;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@@ -193,6 +194,7 @@ class VideoDetailController extends GetxController
|
||||
bvid: bvid,
|
||||
cid: cid,
|
||||
enableHeart: enableHeart,
|
||||
isFirstTime: isFirstTime,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -233,7 +235,6 @@ class VideoDetailController extends GetxController
|
||||
currentDecodeFormats = VideoDecodeFormatsCode.fromString(setting.get(
|
||||
SettingBoxKey.defaultDecode,
|
||||
defaultValue: VideoDecodeFormats.values.last.code))!;
|
||||
print(currentDecodeFormats.description);
|
||||
try {
|
||||
// 当前视频没有对应格式返回第一个
|
||||
bool flag = false;
|
||||
@@ -287,6 +288,7 @@ class VideoDetailController extends GetxController
|
||||
defaultST = Duration(milliseconds: data.lastPlayTime!);
|
||||
if (autoPlay.value) {
|
||||
await playerInit();
|
||||
isShowCover.value = false;
|
||||
}
|
||||
} else {
|
||||
if (result['code'] == -404) {
|
||||
|
||||
Reference in New Issue
Block a user