Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-17 12:43:09 +08:00
parent ab1e5cb62a
commit b4fb7d14d4
31 changed files with 84 additions and 85 deletions

View File

@@ -1014,7 +1014,7 @@ class VideoDetailController extends GetxController
}
}
({int mode, int fontsize, Color color})? dmConfig;
({int mode, int fontSize, Color color})? dmConfig;
String? savedDanmaku;
/// 发送弹幕
@@ -1036,7 +1036,7 @@ class VideoDetailController extends GetxController
progress: plPlayerController.position.value.inMilliseconds,
initialValue: savedDanmaku,
onSave: (danmaku) => savedDanmaku = danmaku,
callback: (danmakuModel) {
onSuccess: (danmakuModel) {
savedDanmaku = null;
plPlayerController.danmakuController?.addDanmaku(danmakuModel);
},
@@ -1171,7 +1171,7 @@ class VideoDetailController extends GetxController
seasonId: isUgc ? null : seasonId,
pgcType: isUgc ? null : pgcType,
videoType: videoType,
callback: () async {
onInit: () async {
if (videoState.value is! Success) {
videoState.value = const Success(null);
}