mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: def hardwareDecoding
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user