refactor progress bar

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-26 12:45:41 +08:00
parent 2ba6f0d063
commit a623ceee47
12 changed files with 263 additions and 391 deletions

View File

@@ -183,10 +183,9 @@ class _PostPanelState extends State<PostPanel>
late final PlPlayerController plPlayerController = widget.plPlayerController;
late final List<PostSegmentModel> list = videoDetailController.postList;
double get videoDuration =>
plPlayerController.duration.value.inMilliseconds / 1000;
double get videoDuration => plPlayerController.durationInMilliseconds / 1000;
double currentPos() => plPlayerController.position.inMilliseconds / 1000;
double currentPos() => plPlayerController.positionInMilliseconds / 1000;
@override
Widget buildPage(ThemeData theme) {