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);
|
await _videoPlayerController?.setRate(speed);
|
||||||
try {
|
try {
|
||||||
DanmakuOption currentOption = danmakuController!.option;
|
DanmakuOption currentOption = danmakuController!.option;
|
||||||
defaultDuration ??= currentOption.duration.toDouble();
|
defaultDuration ??=
|
||||||
|
currentOption.duration.toDouble() * _playbackSpeed.value;
|
||||||
DanmakuOption updatedOption =
|
DanmakuOption updatedOption =
|
||||||
currentOption.copyWith(duration: defaultDuration! ~/ speed);
|
currentOption.copyWith(duration: defaultDuration! ~/ speed);
|
||||||
danmakuController!.updateOption(updatedOption);
|
danmakuController!.updateOption(updatedOption);
|
||||||
|
|||||||
Reference in New Issue
Block a user