mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: set playback speed
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -272,8 +272,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
// 结束播放退出全屏
|
||||
if (!notExitFlag && autoExitFullscreen) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
if (plPlayerController!.doubleSpeedStatus.value) {
|
||||
plPlayerController!.setDoubleSpeedStatus(false);
|
||||
if (plPlayerController!.longPressStatus.value) {
|
||||
plPlayerController!.setLongPressStatus(false);
|
||||
}
|
||||
if (plPlayerController!.controlsLock.value) {
|
||||
plPlayerController!.onLockControl(false);
|
||||
|
||||
@@ -302,8 +302,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
// 结束播放退出全屏
|
||||
if (!notExitFlag && autoExitFullscreen) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
if (plPlayerController!.doubleSpeedStatus.value) {
|
||||
plPlayerController!.setDoubleSpeedStatus(false);
|
||||
if (plPlayerController!.longPressStatus.value) {
|
||||
plPlayerController!.setLongPressStatus(false);
|
||||
}
|
||||
if (plPlayerController!.controlsLock.value) {
|
||||
plPlayerController!.onLockControl(false);
|
||||
|
||||
@@ -1520,7 +1520,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
danmakuController?.updateOption(
|
||||
danmakuController.option.copyWith(
|
||||
duration:
|
||||
danmakuDuration ~/ widget.controller.playbackSpeed),
|
||||
danmakuDuration / widget.controller.playbackSpeed),
|
||||
);
|
||||
} catch (_) {}
|
||||
}
|
||||
@@ -1534,7 +1534,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
try {
|
||||
danmakuController?.updateOption(
|
||||
danmakuController.option.copyWith(
|
||||
staticDuration: danmakuStaticDuration ~/
|
||||
staticDuration: danmakuStaticDuration /
|
||||
widget.controller.playbackSpeed),
|
||||
);
|
||||
} catch (_) {}
|
||||
|
||||
Reference in New Issue
Block a user