mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: danmaku duration
fix https://github.com/guozhigq/pilipala/issues/716 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -862,9 +862,12 @@ class PlPlayerController {
|
||||
try {
|
||||
DanmakuOption currentOption = danmakuController!.option;
|
||||
defaultDuration ??= currentOption.duration;
|
||||
DanmakuOption updatedOption = currentOption.copyWith(
|
||||
duration: (defaultDuration! / speed) * playbackSpeed);
|
||||
DanmakuOption updatedOption =
|
||||
currentOption.copyWith(duration: defaultDuration! / speed);
|
||||
danmakuController!.updateOption(updatedOption);
|
||||
if (speed == 1.0) {
|
||||
defaultDuration = null;
|
||||
}
|
||||
} catch (_) {}
|
||||
// fix 长按倍速后放开不恢复
|
||||
if (!doubleSpeedStatus.value) {
|
||||
|
||||
Reference in New Issue
Block a user