show img menu

opt img placeholder

opt player gesture

opt pref

tweaks

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-09 12:18:32 +08:00
parent 28b69a06fa
commit d10c737a38
31 changed files with 340 additions and 178 deletions

View File

@@ -1146,11 +1146,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
}
void onDoubleTapDownMobile(TapDownDetails details) {
if (plPlayerController.controlsLock.value) {
return;
}
if (plPlayerController.isLive) {
plPlayerController.doubleTapFuc(DoubleTapType.center);
if (plPlayerController.isLive || plPlayerController.controlsLock.value) {
return;
}
final double tapPosition = details.localPosition.dx;
@@ -1167,7 +1163,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
}
void onTapDesktop() {
if (plPlayerController.controlsLock.value) {
if (plPlayerController.isLive || plPlayerController.controlsLock.value) {
return;
}
plPlayerController.onDoubleTapCenter();