From dfd4bf8077f9a4d6c407455725571fccbbdbe143 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Mon, 20 Jan 2025 13:43:24 +0800 Subject: [PATCH] opt: video: initskip Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/detail/controller.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 0893d0b2..2a205ba2 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -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;