mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 默认长按倍速调整为3.0,预设倍速中的0.25替换为3.0
This commit is contained in:
@@ -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>[]));
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user