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

@@ -103,7 +103,7 @@ class _ViewPointsPageState extends State<ViewPointsPage>
final segment = videoDetailController.viewPointList[index];
if (currentIndex == -1 && segment.from != null && segment.to != null) {
final positionSeconds =
videoDetailController.plPlayerController.positionSeconds.value;
videoDetailController.plPlayerController.position.value;
if (positionSeconds >= segment.from! &&
positionSeconds < segment.to!) {
currentIndex = index;