mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video progressbar
Closes #507 Closes #514 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -450,7 +450,9 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
|||||||
updateSegment(
|
updateSegment(
|
||||||
isFirst: isFirst,
|
isFirst: isFirst,
|
||||||
index: index,
|
index: index,
|
||||||
value: isFirst ? 0 : plPlayerController.duration.value.inSeconds,
|
value: isFirst
|
||||||
|
? 0
|
||||||
|
: plPlayerController.durationSeconds.value.inSeconds,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1393,7 +1393,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
return Positioned(
|
return Positioned(
|
||||||
bottom: -1,
|
bottom: -2.2,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: Semantics(
|
child: Semantics(
|
||||||
@@ -1410,7 +1410,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
if (plPlayerController.viewPointList.isNotEmpty &&
|
if (plPlayerController.viewPointList.isNotEmpty &&
|
||||||
plPlayerController.showVP.value)
|
plPlayerController.showVP.value)
|
||||||
buildViewPointWidget(plPlayerController, 4.25),
|
buildViewPointWidget(plPlayerController, 4.25),
|
||||||
ProgressBar(
|
IgnorePointer(
|
||||||
|
child: ProgressBar(
|
||||||
progress: Duration(seconds: value),
|
progress: Duration(seconds: value),
|
||||||
buffered: Duration(seconds: buffer),
|
buffered: Duration(seconds: buffer),
|
||||||
total: Duration(seconds: max),
|
total: Duration(seconds: max),
|
||||||
@@ -1451,6 +1452,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
// type: 'slider');
|
// type: 'slider');
|
||||||
// },
|
// },
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (plPlayerController.segmentList.isNotEmpty)
|
if (plPlayerController.segmentList.isNotEmpty)
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user