mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
@@ -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(',');
|
||||
|
||||
@@ -2,7 +2,7 @@ enum BtmProgressBehavior {
|
||||
alwaysShow('始终展示'),
|
||||
alwaysHide('始终隐藏'),
|
||||
onlyShowFullScreen('仅全屏时展示'),
|
||||
onlyHideFullScreen('仅全屏时隐藏')
|
||||
onlyHideFullScreen('仅全屏时隐藏'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -13,7 +13,7 @@ enum FullScreenMode {
|
||||
// 屏幕长宽比 < kScreenRatio 或为竖屏视频时竖屏,否则横屏
|
||||
ratio('屏幕长宽比<$kScreenRatio或为竖屏视频时竖屏,否则横屏'),
|
||||
// 强制重力转屏(仅安卓)
|
||||
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)')
|
||||
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -5,7 +5,7 @@ enum PlayRepeat implements EnumWithLabel {
|
||||
listOrder('顺序播放'),
|
||||
singleCycle('单个循环'),
|
||||
listCycle('列表循环'),
|
||||
autoPlayRelated('自动连播')
|
||||
autoPlayRelated('自动连播'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -8,7 +8,7 @@ enum PlaySpeed {
|
||||
onePointSevenFive(1.75),
|
||||
|
||||
two(2.0),
|
||||
three(3.0)
|
||||
three(3.0),
|
||||
;
|
||||
|
||||
final double value;
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:get/get.dart';
|
||||
enum PlayerStatus {
|
||||
completed,
|
||||
playing,
|
||||
paused
|
||||
paused,
|
||||
;
|
||||
|
||||
bool get isCompleted => this == PlayerStatus.completed;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -150,7 +150,7 @@ enum WebpPreset {
|
||||
photo('photo', '照片', '户外摄影,自然光环境'),
|
||||
drawing('drawing', '绘图', '手绘或线稿,高对比度细节'),
|
||||
icon('icon', '图标', '小型彩色图像'),
|
||||
text('text', '文本', '文字类')
|
||||
text('text', '文本', '文字类'),
|
||||
;
|
||||
|
||||
final String flag;
|
||||
|
||||
Reference in New Issue
Block a user