mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video: initskip
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -114,13 +114,7 @@ extension SegmentTypeExt on SegmentType {
|
|||||||
enum SkipType { alwaysSkip, skipOnce, skipManually, showOnly, disable }
|
enum SkipType { alwaysSkip, skipOnce, skipManually, showOnly, disable }
|
||||||
|
|
||||||
extension SkipTypeExt on SkipType {
|
extension SkipTypeExt on SkipType {
|
||||||
String get title => [
|
String get title => ['总是跳过', '跳过一次', '手动跳过', '仅显示', '禁用'][index];
|
||||||
'总是跳过',
|
|
||||||
'跳过一次',
|
|
||||||
'手动跳过',
|
|
||||||
'仅显示',
|
|
||||||
'禁用',
|
|
||||||
][index];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class SegmentModel {
|
class SegmentModel {
|
||||||
@@ -828,6 +822,9 @@ class VideoDetailController extends GetxController
|
|||||||
positionSubscription = plPlayerController
|
positionSubscription = plPlayerController
|
||||||
.videoPlayerController?.stream.position
|
.videoPlayerController?.stream.position
|
||||||
.listen((position) async {
|
.listen((position) async {
|
||||||
|
if (isShowCover.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
int currentPos = position.inSeconds;
|
int currentPos = position.inSeconds;
|
||||||
if (currentPos != _lastPos) {
|
if (currentPos != _lastPos) {
|
||||||
_lastPos = currentPos;
|
_lastPos = currentPos;
|
||||||
|
|||||||
Reference in New Issue
Block a user