mod: 默认关闭硬解

This commit is contained in:
guozhigq
2024-04-27 20:40:23 +08:00
parent d60bc7fa45
commit 448e5f823b
3 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ class _PlaySettingState extends State<PlaySetting> {
title: '开启硬解', title: '开启硬解',
subTitle: '以较低功耗播放视频', subTitle: '以较低功耗播放视频',
setKey: SettingBoxKey.enableHA, setKey: SettingBoxKey.enableHA,
defaultVal: true, defaultVal: false,
), ),
const SetSwitchItem( const SetSwitchItem(
title: '观看人数', title: '观看人数',

View File

@ -59,7 +59,7 @@ class VideoDetailController extends GetxController
// 封面图的展示 // 封面图的展示
RxBool isShowCover = true.obs; RxBool isShowCover = true.obs;
// 硬解 // 硬解
RxBool enableHA = true.obs; RxBool enableHA = false.obs;
/// 本地存储 /// 本地存储
Box userInfoCache = GStrorage.userInfo; Box userInfoCache = GStrorage.userInfo;
@ -129,7 +129,7 @@ class VideoDetailController extends GetxController
tabCtr = TabController(length: 2, vsync: this); tabCtr = TabController(length: 2, vsync: this);
autoPlay.value = autoPlay.value =
setting.get(SettingBoxKey.autoPlayEnable, defaultValue: true); setting.get(SettingBoxKey.autoPlayEnable, defaultValue: true);
enableHA.value = setting.get(SettingBoxKey.enableHA, defaultValue: true); enableHA.value = setting.get(SettingBoxKey.enableHA, defaultValue: false);
enableRelatedVideo = enableRelatedVideo =
setting.get(SettingBoxKey.enableRelatedVideo, defaultValue: true); setting.get(SettingBoxKey.enableRelatedVideo, defaultValue: true);
if (userInfo == null || if (userInfo == null ||

View File

@ -353,7 +353,7 @@ class PlPlayerController {
// 初始化播放速度 // 初始化播放速度
double speed = 1.0, double speed = 1.0,
// 硬件加速 // 硬件加速
bool enableHA = true, bool enableHA = false,
double? width, double? width,
double? height, double? height,
Duration? duration, Duration? duration,