audio notification

Closes #1635

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-19 11:24:14 +08:00
parent 9482a706da
commit 71a170deb5
3 changed files with 60 additions and 5 deletions

View File

@@ -1171,7 +1171,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
LongPressGestureRecognizer? _longPressRecognizer;
LongPressGestureRecognizer get longPressRecognizer => _longPressRecognizer ??=
LongPressGestureRecognizer(duration: const Duration(milliseconds: 300))
LongPressGestureRecognizer(
duration: plPlayerController.enableTapDm
? const Duration(milliseconds: 300)
: null,
)
..onLongPressStart = ((_) =>
plPlayerController.setLongPressStatus(true))
..onLongPressEnd = (_) => plPlayerController.setLongPressStatus(false);
@@ -1318,7 +1322,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
if (!isLive)
Positioned.fill(
top: 4,
child: IgnorePointer(
ignoring: !plPlayerController.enableDragSubtitle,
child: Obx(