Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-29 13:56:07 +08:00
parent 8fd51da8da
commit e2f8cb89a9

View File

@@ -839,7 +839,8 @@ class PlPlayerController {
await _videoPlayerController?.setRate(speed);
try {
DanmakuOption currentOption = danmakuController!.option;
defaultDuration ??= currentOption.duration.toDouble();
defaultDuration ??=
currentOption.duration.toDouble() * _playbackSpeed.value;
DanmakuOption updatedOption =
currentOption.copyWith(duration: defaultDuration! ~/ speed);
danmakuController!.updateOption(updatedOption);