mod: 样式修改、历史记录修改

This commit is contained in:
guozhigq
2023-07-10 11:01:22 +08:00
parent 54a5fc61f0
commit f305e0864f
10 changed files with 63 additions and 67 deletions

View File

@ -49,6 +49,8 @@ class VideoDetailController extends GetxController
Timer? timer;
RxString bgCover = ''.obs;
@override
void onInit() {
super.onInit();
@ -58,10 +60,12 @@ class VideoDetailController extends GetxController
var args = Get.arguments['videoItem'];
if (args.pic != null && args.pic != '') {
videoItem['pic'] = args.pic;
bgCover.value = args.pic;
}
}
if (Get.arguments.containsKey('pic')) {
videoItem['pic'] = Get.arguments['pic'];
bgCover.value = Get.arguments['pic'];
}
heroTag = Get.arguments['heroTag'];
}
@ -135,7 +139,11 @@ class VideoDetailController extends GetxController
void markHeartBeat() async {
Duration progress = meeduPlayerController.position.value;
await VideoHttp.heartBeat(bvid: bvid, progress: progress.inSeconds);
await VideoHttp.heartBeat(
bvid: bvid,
cid: cid,
progress: progress.inSeconds,
);
}
@override