mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-03 16:49:48 +08:00
@@ -49,7 +49,7 @@ abstract class CommonIntroController extends GetxController {
|
||||
|
||||
final Rx<VideoDetailData> videoDetail = VideoDetailData().obs;
|
||||
|
||||
Future<void> queryVideoIntro();
|
||||
void queryVideoIntro();
|
||||
|
||||
bool prevPlay();
|
||||
bool nextPlay();
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user