From e2f8cb89a99eec3e79ae916081c490f532f2d7c0 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 29 Dec 2024 13:56:07 +0800 Subject: [PATCH] fix: #65 Signed-off-by: bggRGjQaUbCoE --- lib/plugin/pl_player/controller.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index c60fe5d7..f3585ab8 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -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);