feat: 倍速、画质、音质调节
This commit is contained in:
37
lib/plugin/pl_player/models/play_speed.dart
Normal file
37
lib/plugin/pl_player/models/play_speed.dart
Normal file
@ -0,0 +1,37 @@
|
||||
enum PlaySpeed {
|
||||
pointTwoFive,
|
||||
pointFive,
|
||||
pointSevenFive,
|
||||
one,
|
||||
onePointTwoFive,
|
||||
onePointFive,
|
||||
onePointSevenFive,
|
||||
two
|
||||
}
|
||||
|
||||
extension PlaySpeedExtension on PlaySpeed {
|
||||
static final List<String> _descList = [
|
||||
'0.25倍',
|
||||
'0.5倍',
|
||||
'0.75倍',
|
||||
'正常速度',
|
||||
'1.25倍',
|
||||
'1.5倍',
|
||||
'1.75倍',
|
||||
'2.0倍',
|
||||
];
|
||||
get description => _descList[index];
|
||||
|
||||
static final List<double> _valueList = [
|
||||
0.25,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0,
|
||||
1.25,
|
||||
1.5,
|
||||
1.75,
|
||||
2.0
|
||||
];
|
||||
get value => _valueList[index];
|
||||
get defaultValue => _valueList[3];
|
||||
}
|
||||
Reference in New Issue
Block a user