mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -59,17 +59,8 @@ class FavVideoCardH extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, String> parameters = {
|
||||
'bvid': bvid,
|
||||
'cid': videoItem.cid.toString(),
|
||||
if (epId?.isNotEmpty == true) 'epId': epId!,
|
||||
};
|
||||
// if (seasonId != null) {
|
||||
// parameters['seasonId'] = seasonId.toString();
|
||||
// }
|
||||
Utils.toViewPage(
|
||||
'',
|
||||
parameters: parameters,
|
||||
'bvid=$bvid&cid=${videoItem.cid}${epId?.isNotEmpty == true ? '&epId=$epId' : ''}',
|
||||
arguments: {
|
||||
'videoItem': videoItem,
|
||||
'heroTag': Utils.makeHeroTag(id),
|
||||
|
||||
@@ -28,14 +28,8 @@ class SubVideoCardH extends StatelessWidget {
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
int cid = await SearchHttp.ab2c(bvid: bvid);
|
||||
Map<String, String> parameters = {
|
||||
'bvid': bvid,
|
||||
'cid': cid.toString(),
|
||||
};
|
||||
|
||||
Utils.toViewPage(
|
||||
'',
|
||||
parameters: parameters,
|
||||
'bvid=$bvid&cid=$cid',
|
||||
arguments: {
|
||||
'videoItem': videoItem,
|
||||
'heroTag': Utils.makeHeroTag(id),
|
||||
|
||||
@@ -1997,6 +1997,7 @@ class VideoDetailController extends GetxController
|
||||
plPlayerController.playerStatus.status.value !=
|
||||
PlayerStatus.completed &&
|
||||
playedTime != null) {
|
||||
try {
|
||||
plPlayerController.makeHeartBeat(
|
||||
data.timeLength != null
|
||||
? (data.timeLength! - playedTime!.inMilliseconds).abs() <= 1000
|
||||
@@ -2011,6 +2012,7 @@ class VideoDetailController extends GetxController
|
||||
seasonId: videoType == SearchType.media_bangumi ? seasonId : null,
|
||||
subType: videoType == SearchType.media_bangumi ? subType : null,
|
||||
);
|
||||
} catch (_) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1631,9 +1631,10 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
onTap: handlePlay,
|
||||
child: Obx(
|
||||
() => CachedNetworkImage(
|
||||
imageUrl:
|
||||
(videoDetailController.videoItem['pic'] as String)
|
||||
.http2https,
|
||||
imageUrl: videoDetailController.videoItem['pic'] != null
|
||||
? (videoDetailController.videoItem['pic'] as String)
|
||||
.http2https
|
||||
: '',
|
||||
width: videoWidth,
|
||||
height: videoHeight,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
Reference in New Issue
Block a user