From c079ed12ca7adb427f9f3f1c299e2ea5f2d416aa Mon Sep 17 00:00:00 2001 From: ashilkn Date: Sat, 10 Aug 2024 16:12:22 +0530 Subject: [PATCH] [mob][photos] UX improvements on native video player --- mobile/lib/ui/viewer/file/video_widget_native.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mobile/lib/ui/viewer/file/video_widget_native.dart b/mobile/lib/ui/viewer/file/video_widget_native.dart index dfe95a4e5b..f0552e128a 100644 --- a/mobile/lib/ui/viewer/file/video_widget_native.dart +++ b/mobile/lib/ui/viewer/file/video_widget_native.dart @@ -410,10 +410,13 @@ class _VideoWidgetNativeState extends State void _isSeekingListener() { if (!_isSeeking.value && _controller?.playbackInfo?.status == PlaybackStatus.playing) { - Future.delayed(const Duration(milliseconds: 1500), () { + Future.delayed(const Duration(milliseconds: 2000), () { if (mounted) { if (_isSeeking.value) return; _showControls.value = false; + if (Platform.isIOS) { + widget.playbackCallback!(true); + } } }); } @@ -427,7 +430,7 @@ class _VideoWidgetNativeState extends State } if (_controller!.playbackInfo?.status == PlaybackStatus.playing) { if (widget.playbackCallback != null && mounted) { - Future.delayed(const Duration(milliseconds: 1500), () { + Future.delayed(const Duration(milliseconds: 2000), () { if (mounted) { if (_isSeeking.value) return; _showControls.value = false;