mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-10 03:57:49 +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 PlPlayerController plPlayerController = widget.plPlayerController;
|
||||||
late final List<PostSegmentModel> list = videoDetailController.postList;
|
late final List<PostSegmentModel> list = videoDetailController.postList;
|
||||||
|
|
||||||
late final double videoDuration =
|
double get videoDuration =>
|
||||||
plPlayerController.duration.value.inMilliseconds / 1000;
|
plPlayerController.duration.value.inMilliseconds / 1000;
|
||||||
|
|
||||||
double currentPos() => plPlayerController.position.inMilliseconds / 1000;
|
double currentPos() => plPlayerController.position.inMilliseconds / 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user