mod: 默认长按倍速调整为3.0,预设倍速中的0.25替换为3.0

This commit is contained in:
orz12
2024-03-06 16:32:20 +08:00
parent 02148f641f
commit 1ea95a3079
3 changed files with 9 additions and 6 deletions

View File

@@ -299,7 +299,7 @@ class PlPlayerController {
.get(SettingBoxKey.enableAutoLongPressSpeed, defaultValue: false);
if (!enableAutoLongPressSpeed) {
_longPressSpeed.value = videoStorage
.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 2.0);
.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 3.0);
}
speedsList = List<double>.from(videoStorage
.get(VideoBoxKey.customSpeedsList, defaultValue: <double>[]));

View File

@@ -1,5 +1,5 @@
enum PlaySpeed {
pointTwoFive,
// pointTwoFive,
pointFive,
pointSevenFive,
@@ -9,11 +9,12 @@ enum PlaySpeed {
onePointSevenFive,
two,
three,
}
extension PlaySpeedExtension on PlaySpeed {
static final List<String> _descList = [
'0.25',
// '0.25',
'0.5',
'0.75',
'正常',
@@ -21,11 +22,12 @@ extension PlaySpeedExtension on PlaySpeed {
'1.5',
'1.75',
'2.0',
'3.0'
];
String get description => _descList[index];
static final List<double> _valueList = [
0.25,
// 0.25,
0.5,
0.75,
1.0,
@@ -33,6 +35,7 @@ extension PlaySpeedExtension on PlaySpeed {
1.5,
1.75,
2.0,
3.0,
];
double get value => _valueList[index];
double get defaultValue => _valueList[3];