opt: video seek preview

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-30 09:51:13 +08:00
parent a5a13b45cf
commit 02af3a18ff
5 changed files with 88 additions and 62 deletions

View File

@@ -512,7 +512,7 @@ class PlPlayerController {
if (showSeekPreview) {
videoShot = null;
showPreview.value = false;
localPosition.value = Offset.zero;
previewDx.value = 0;
}
if (_videoPlayerController != null &&
@@ -1575,7 +1575,7 @@ class PlPlayerController {
late bool _isQueryingVideoShot = false;
Map? videoShot;
late final RxBool showPreview = false.obs;
late final Rx<Offset> localPosition = Offset.zero.obs;
late final RxDouble previewDx = 0.0.obs;
void getVideoShot() async {
if (_isQueryingVideoShot) {