diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 9438a1a9f..39dd03b47 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -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; diff --git a/lib/utils/storage.dart b/lib/utils/storage.dart index c3fe706b8..166095c3c 100644 --- a/lib/utils/storage.dart +++ b/lib/utils/storage.dart @@ -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,