feat: new send danmaku panel

Closes #98

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-04 21:48:07 +08:00
parent 58fd373e8c
commit 27e39d4de5
6 changed files with 656 additions and 97 deletions

View File

@@ -557,18 +557,18 @@ class VideoIntroController extends GetxController
// 修改分P或番剧分集
Future changeSeasonOrbangu(epid, bvid, cid, aid, cover) async {
// 重新获取视频资源
final VideoDetailController videoDetailCtr =
Get.find<VideoDetailController>(tag: heroTag);
videoDetailCtr.updateMediaListHistory(aid);
videoDetailCtr.vttSubtitlesIndex = null;
videoDetailCtr.bvid = bvid;
videoDetailCtr.oid.value = aid ?? IdUtils.bv2av(bvid);
videoDetailCtr.cid.value = cid;
final videoDetailCtr = Get.find<VideoDetailController>(tag: heroTag)
..updateMediaListHistory(aid)
..vttSubtitlesIndex = null
..savedDanmaku = null
..bvid = bvid
..oid.value = aid ?? IdUtils.bv2av(bvid)
..cid.value = cid
..danmakuCid.value = cid
..queryVideoUrl();
if (cover is String && cover.isNotEmpty) {
videoDetailCtr.videoItem['pic'] = cover;
}
videoDetailCtr.danmakuCid.value = cid;
videoDetailCtr.queryVideoUrl();
// 重新请求相关视频
if (videoDetailCtr.showRelatedVideo) {