feat: millisecond skip (#869)

* feat: millisecond skip

* fix: formatDuration

* fix: post segment
This commit is contained in:
My-Responsitories
2025-06-11 09:39:26 +08:00
committed by GitHub
parent bc2de4828b
commit 3655c31a48
6 changed files with 41 additions and 45 deletions

View File

@@ -325,8 +325,8 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
int start = max(
0,
(list![index].segment.first * 1000)
.toInt() -
2,
.round() -
2000,
);
await widget
.plPlayerController.videoPlayerController!
@@ -349,7 +349,7 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
Duration(
milliseconds:
(list![index].segment.second * 1000)
.toInt(),
.round(),
),
);
}