mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 19:47:57 +08:00
get real-time video duration in post panel
Closes #1901 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -183,7 +183,7 @@ class _PostPanelState extends State<PostPanel>
|
||||
late final PlPlayerController plPlayerController = widget.plPlayerController;
|
||||
late final List<PostSegmentModel> list = videoDetailController.postList;
|
||||
|
||||
late final double videoDuration =
|
||||
double get videoDuration =>
|
||||
plPlayerController.duration.value.inMilliseconds / 1000;
|
||||
|
||||
double currentPos() => plPlayerController.position.inMilliseconds / 1000;
|
||||
|
||||
Reference in New Issue
Block a user