fix: video duration

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-30 13:57:21 +08:00
parent 21550815db
commit afcf817c4f
4 changed files with 21 additions and 15 deletions

View File

@@ -1359,7 +1359,8 @@ class VideoDetailController extends GetxController
duration += split[i] * pow(60, i).toInt();
}
if (duration <=
plPlayerController.durationSeconds.value) {
plPlayerController
.durationSeconds.value.inSeconds) {
setState(() {
updateSegment(
isFirst: isFirst,
@@ -1687,7 +1688,9 @@ class VideoDetailController extends GetxController
'userID': GStorage.blockUserID,
'userAgent': Constants.userAgent,
'videoDuration': plPlayerController
.durationSeconds.value,
.durationSeconds
.value
.inSeconds,
},
data: {
'segments': list!