opt: video: initskip

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-20 13:43:24 +08:00
parent 0870f2710e
commit dfd4bf8077

View File

@@ -114,13 +114,7 @@ extension SegmentTypeExt on SegmentType {
enum SkipType { alwaysSkip, skipOnce, skipManually, showOnly, disable }
extension SkipTypeExt on SkipType {
String get title => [
'总是跳过',
'跳过一次',
'手动跳过',
'仅显示',
'禁用',
][index];
String get title => ['总是跳过', '跳过一次', '手动跳过', '仅显示', '禁用'][index];
}
class SegmentModel {
@@ -828,6 +822,9 @@ class VideoDetailController extends GetxController
positionSubscription = plPlayerController
.videoPlayerController?.stream.position
.listen((position) async {
if (isShowCover.value) {
return;
}
int currentPos = position.inSeconds;
if (currentPos != _lastPos) {
_lastPos = currentPos;