mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user