mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt: video: long press
Closes #423 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1356,12 +1356,19 @@ class PlPlayerController {
|
||||
if (controlsLock.value) {
|
||||
return;
|
||||
}
|
||||
_doubleSpeedStatus.value = val;
|
||||
if (_doubleSpeedStatus.value == val) {
|
||||
return;
|
||||
}
|
||||
if (val) {
|
||||
await setPlaybackSpeed(
|
||||
enableAutoLongPressSpeed ? playbackSpeed * 2 : longPressSpeed);
|
||||
if (playerStatus.status.value == PlayerStatus.playing) {
|
||||
_doubleSpeedStatus.value = val;
|
||||
HapticFeedback.lightImpact();
|
||||
await setPlaybackSpeed(
|
||||
enableAutoLongPressSpeed ? playbackSpeed * 2 : longPressSpeed);
|
||||
}
|
||||
} else {
|
||||
debugPrint('$playbackSpeed');
|
||||
// debugPrint('$playbackSpeed');
|
||||
_doubleSpeedStatus.value = val;
|
||||
await setPlaybackSpeed(playbackSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user