Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 11:13:50 +08:00
parent 2e614fa03c
commit 3208661a52
8 changed files with 120 additions and 70 deletions

View File

@@ -49,7 +49,7 @@ abstract class CommonIntroController extends GetxController {
final Rx<VideoDetailData> videoDetail = VideoDetailData().obs;
Future<void> queryVideoIntro();
void queryVideoIntro();
bool prevPlay();
bool nextPlay();

View File

@@ -71,7 +71,11 @@ class HistoryItem extends StatelessWidget {
PageUtils.viewPgc(epId: item.history.epid);
} else if (item.history.business == 'cheese') {
if (item.uri?.isNotEmpty == true) {
PageUtils.viewPgcFromUri(item.uri!, isPgc: false);
PageUtils.viewPgcFromUri(
item.uri!,
isPgc: false,
aid: item.history.oid,
);
}
} else {
int? cid =

View File

@@ -1130,6 +1130,7 @@ class VideoDetailController extends GetxController
: Duration(milliseconds: data.timeLength!)),
// 宽>高 水平 否则 垂直
isVertical: isVertical.value,
aid: aid,
bvid: bvid,
cid: cid.value,
autoplay: autoplay ?? autoPlay.value,
@@ -1599,6 +1600,7 @@ class VideoDetailController extends GetxController
: playedTime!.inSeconds,
type: HeartBeatType.status,
isManual: true,
aid: aid,
bvid: bvid,
cid: cid.value,
epid: isUgc ? null : epId,

View File

@@ -312,8 +312,8 @@ class PgcIntroController extends CommonIntroController {
hasLater.value = false;
this.cid.value = cid;
queryVideoIntro();
queryOnlineTotal();
queryVideoIntro(episode as EpisodeItem);
} catch (e) {
debugPrint('pgc onChangeEpisode: $e');
}
@@ -467,8 +467,8 @@ class PgcIntroController extends CommonIntroController {
}
@override
Future<void> queryVideoIntro() async {
final episode = pgcItem.episodes!.firstWhere((e) => e.cid == cid.value);
void queryVideoIntro([EpisodeItem? episode]) {
episode ??= pgcItem.episodes!.firstWhere((e) => e.cid == cid.value);
videoPlayerServiceHandler.onVideoDetailChange(
episode,
cid.value,