fix: get video progress

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-24 10:31:14 +08:00
parent a98d8511d6
commit 192cd60a4f

View File

@@ -1070,7 +1070,7 @@ class VideoDetailController extends GetxController
if (data.dash == null && data.durl != null) {
videoUrl = data.durl!.first.url!;
audioUrl = '';
if (Get.arguments['progress'] != null) {
if (Get.arguments?['progress'] != null) {
this.defaultST = Duration(milliseconds: Get.arguments['progress']);
Get.arguments['progress'] = null;
} else {
@@ -1193,7 +1193,7 @@ class VideoDetailController extends GetxController
audioUrl = '';
}
//
if (Get.arguments['progress'] != null) {
if (Get.arguments?['progress'] != null) {
this.defaultST = Duration(milliseconds: Get.arguments['progress']);
Get.arguments['progress'] = null;
} else {