mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
feat: tempPlayerConf add playRepeat (#1830)
This commit is contained in:
committed by
GitHub
parent
7e570d11d8
commit
0460030a2b
@@ -1664,7 +1664,7 @@ class PlPlayerController with BlockConfigMixin {
|
||||
|
||||
void setPlayRepeat(PlayRepeat type) {
|
||||
playRepeat = type;
|
||||
video.put(VideoBoxKey.playRepeat, type.index);
|
||||
if (!Pref.tempPlayerConf) video.put(VideoBoxKey.playRepeat, type.index);
|
||||
}
|
||||
|
||||
void putSubtitleSettings() {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
enum PlayRepeat {
|
||||
import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
|
||||
enum PlayRepeat implements EnumWithLabel {
|
||||
pause('播完暂停'),
|
||||
listOrder('顺序播放'),
|
||||
singleCycle('单个循环'),
|
||||
@@ -6,6 +8,7 @@ enum PlayRepeat {
|
||||
autoPlayRelated('自动连播')
|
||||
;
|
||||
|
||||
final String desc;
|
||||
const PlayRepeat(this.desc);
|
||||
@override
|
||||
final String label;
|
||||
const PlayRepeat(this.label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user