-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-hiddenRelateVideo'
- Loading branch information
Showing
9 changed files
with
92 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,15 @@ | ||
enum PlaySpeed { | ||
pointTwoFive, | ||
pointFive, | ||
pointSevenFive, | ||
List<double> generatePlaySpeedList() { | ||
List<double> playSpeed = []; | ||
double startSpeed = 0.25; | ||
double endSpeed = 2.0; | ||
double increment = 0.25; | ||
|
||
one, | ||
onePointTwoFive, | ||
onePointFive, | ||
onePointSevenFive, | ||
for (double speed = startSpeed; speed <= endSpeed; speed += increment) { | ||
playSpeed.add(speed); | ||
} | ||
|
||
two, | ||
return playSpeed; | ||
} | ||
|
||
extension PlaySpeedExtension on PlaySpeed { | ||
static final List<String> _descList = [ | ||
'0.25', | ||
'0.5', | ||
'0.75', | ||
'正常', | ||
'1.25', | ||
'1.5', | ||
'1.75', | ||
'2.0', | ||
]; | ||
String 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, | ||
]; | ||
double get value => _valueList[index]; | ||
double get defaultValue => _valueList[3]; | ||
} | ||
// 导出 playSpeed 列表 | ||
List<double> playSpeed = generatePlaySpeedList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters