基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix: fix danmaku speed exception
Predidit203bd520f173
diff --git a/lib/pages/player/player_controller.dart b/lib/pages/player/player_controller.dartindex 18bd30de..4fe3969e 100644--- a/lib/pages/player/player_controller.dart+++ b/lib/pages/player/player_controller.dart@@ -414,7 +414,7 @@ abstract class _PlayerController with Store {final baseDuration = setting.get(SettingBoxKey.danmakuDuration, defaultValue: 8.0);final followSpeed = setting.get(SettingBoxKey.danmakuFollowSpeed, defaultValue: true);- final duration = followSpeed ? (baseDuration ~/ playerSpeed) : baseDuration.toInt();+ final duration = followSpeed ? (baseDuration / playerSpeed) : baseDuration;danmakuController.updateOption(danmakuController.option.copyWith(duration: duration));}