mod: def hardwareDecoding

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-01 17:48:52 +08:00
parent bd91fb7c6d
commit f4977d2855
2 changed files with 3 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ class VideoDetailController extends GetxController
RxBool isShowCover = true.obs;
// 硬解
RxBool enableHA = true.obs;
RxString hwdec = 'auto-safe'.obs;
RxString hwdec = GStorage.hardwareDecoding.obs;
RxInt oid = 0.obs;
@@ -194,8 +194,6 @@ class VideoDetailController extends GetxController
setting.get(SettingBoxKey.autoPlayEnable, defaultValue: false);
if (autoPlay.value) isShowCover.value = false;
enableHA.value = setting.get(SettingBoxKey.enableHA, defaultValue: true);
hwdec.value = setting.get(SettingBoxKey.hardwareDecoding,
defaultValue: Platform.isAndroid ? 'auto-safe' : 'auto');
if (userInfo == null ||
GStorage.localCache.get(LocalCacheKey.historyPause) == true) {
enableHeart = false;

View File

@@ -161,10 +161,8 @@ class GStorage {
defaultValue: VideoDecodeFormats.values[1].code,
);
static String get hardwareDecoding => setting.get(
SettingBoxKey.hardwareDecoding,
defaultValue: Platform.isAndroid ? 'auto-safe' : 'auto',
);
static String get hardwareDecoding =>
setting.get(SettingBoxKey.hardwareDecoding, defaultValue: 'auto');
static String get videoSync => setting.get(
SettingBoxKey.videoSync,