Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-02 17:56:43 +08:00
parent 904d210ba2
commit cdc1720358
52 changed files with 58 additions and 58 deletions

View File

@@ -3,7 +3,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart';
enum AudioOutput implements EnumWithLabel {
opensles('OpenSL ES'),
aaudio('AAudio'),
audiotrack('AudioTrack')
audiotrack('AudioTrack'),
;
static final defaultValue = values.map((e) => e.name).join(',');

View File

@@ -2,7 +2,7 @@ enum BtmProgressBehavior {
alwaysShow('始终展示'),
alwaysHide('始终隐藏'),
onlyShowFullScreen('仅全屏时展示'),
onlyHideFullScreen('仅全屏时隐藏')
onlyHideFullScreen('仅全屏时隐藏'),
;
final String desc;

View File

@@ -13,7 +13,7 @@ enum FullScreenMode {
// 屏幕长宽比 < kScreenRatio 或为竖屏视频时竖屏,否则横屏
ratio('屏幕长宽比<$kScreenRatio或为竖屏视频时竖屏,否则横屏'),
// 强制重力转屏(仅安卓)
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)')
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)'),
;
final String desc;

View File

@@ -31,7 +31,7 @@ enum HwDecType {
amf('amf', 'AMF (AMD独占)'),
amfCopy('amf-copy', 'AMF (AMD独占) (非直通)'),
qsv('qsv', 'Quick Sync Video (Intel独占)'),
qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)')
qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)'),
;
final String hwdec;

View File

@@ -5,7 +5,7 @@ enum PlayRepeat implements EnumWithLabel {
listOrder('顺序播放'),
singleCycle('单个循环'),
listCycle('列表循环'),
autoPlayRelated('自动连播')
autoPlayRelated('自动连播'),
;
@override

View File

@@ -8,7 +8,7 @@ enum PlaySpeed {
onePointSevenFive(1.75),
two(2.0),
three(3.0)
three(3.0),
;
final double value;

View File

@@ -3,7 +3,7 @@ import 'package:get/get.dart';
enum PlayerStatus {
completed,
playing,
paused
paused,
;
bool get isCompleted => this == PlayerStatus.completed;

View File

@@ -10,7 +10,7 @@ enum VideoFitType {
none('原始', boxFit: BoxFit.none),
scaleDown('限制', boxFit: BoxFit.scaleDown),
ratio_4x3('4:3', aspectRatio: 4 / 3),
ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9)
ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9),
;
final String desc;