feat: tempPlayerConf add playRepeat (#1830)

This commit is contained in:
My-Responsitories
2026-02-09 18:16:45 +08:00
committed by GitHub
parent 7e570d11d8
commit 0460030a2b
7 changed files with 24 additions and 12 deletions

View File

@@ -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() {

View File

@@ -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);
}