diff --git a/lib/plugin/pl_player/models/hwdec_type.dart b/lib/plugin/pl_player/models/hwdec_type.dart index ae1b4671d..2fecfdd53 100644 --- a/lib/plugin/pl_player/models/hwdec_type.dart +++ b/lib/plugin/pl_player/models/hwdec_type.dart @@ -37,4 +37,9 @@ enum HwDecType { final String hwdec; final String desc; const HwDecType(this.hwdec, this.desc); + + static final String androidDefault = [ + HwDecType.mediacodec.hwdec, + HwDecType.autoSafe.hwdec, + ].join(','); } diff --git a/lib/utils/storage_pref.dart b/lib/utils/storage_pref.dart index e45175414..76ec1cd1d 100644 --- a/lib/utils/storage_pref.dart +++ b/lib/utils/storage_pref.dart @@ -200,7 +200,7 @@ abstract final class Pref { static String get hardwareDecoding => _setting.get( SettingBoxKey.hardwareDecoding, defaultValue: Platform.isAndroid - ? HwDecType.autoSafe.hwdec + ? HwDecType.androidDefault : HwDecType.auto.hwdec, );