mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 改善全屏体验,增加额外横屏设置,替换全屏实现方法
This commit is contained in:
@@ -26,6 +26,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
late dynamic defaultAudioQa;
|
||||
late dynamic defaultDecode;
|
||||
late int defaultFullScreenMode;
|
||||
late bool lockLandscape;
|
||||
late int defaultBtmProgressBehavior;
|
||||
|
||||
@override
|
||||
@@ -39,6 +40,8 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
defaultValue: VideoDecodeFormats.values.last.code);
|
||||
defaultFullScreenMode = setting.get(SettingBoxKey.fullScreenMode,
|
||||
defaultValue: FullScreenMode.values.first.code);
|
||||
lockLandscape = setting.get(SettingBoxKey.lockLandscape,
|
||||
defaultValue: false);
|
||||
defaultBtmProgressBehavior = setting.get(SettingBoxKey.btmProgressBehavior,
|
||||
defaultValue: BtmProgresBehavior.values.first.code);
|
||||
}
|
||||
@@ -133,6 +136,12 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
}
|
||||
}
|
||||
),
|
||||
const SetSwitchItem(
|
||||
title: '额外横屏',
|
||||
subTitle: '执行播放器横屏前,额外施加屏幕旋转方向限制',
|
||||
setKey: SettingBoxKey.lockLandscape,
|
||||
defaultVal: false,
|
||||
),
|
||||
const SetSwitchItem(
|
||||
title: '开启硬解',
|
||||
subTitle: '以较低功耗播放视频',
|
||||
|
||||
Reference in New Issue
Block a user