From 0d7882d56528de7641467c1a7a3547f403c2ee5e Mon Sep 17 00:00:00 2001 From: tapframe Date: Sat, 21 Jun 2025 02:14:57 +0530 Subject: [PATCH] Update control visibility timeout in video player components to 5 seconds This change extends the timeout for hiding video player controls in both AndroidVideoPlayer and VideoPlayer components from 3 seconds to 5 seconds. This adjustment aims to enhance user experience by providing more time for user interaction before the controls fade out. --- src/components/player/AndroidVideoPlayer.tsx | 4 ++-- src/components/player/VideoPlayer.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/player/AndroidVideoPlayer.tsx b/src/components/player/AndroidVideoPlayer.tsx index dfe8dcef..74f1c3bd 100644 --- a/src/components/player/AndroidVideoPlayer.tsx +++ b/src/components/player/AndroidVideoPlayer.tsx @@ -498,7 +498,7 @@ const AndroidVideoPlayer: React.FC = () => { }, 1000); } completeOpeningAnimation(); - controlsTimeout.current = setTimeout(hideControls, 3000); + controlsTimeout.current = setTimeout(hideControls, 5000); } }; @@ -661,7 +661,7 @@ const AndroidVideoPlayer: React.FC = () => { useNativeDriver: true, }).start(); if (newShowControls) { - controlsTimeout.current = setTimeout(hideControls, 3000); + controlsTimeout.current = setTimeout(hideControls, 5000); } return newShowControls; }); diff --git a/src/components/player/VideoPlayer.tsx b/src/components/player/VideoPlayer.tsx index cbcfd127..6f73f231 100644 --- a/src/components/player/VideoPlayer.tsx +++ b/src/components/player/VideoPlayer.tsx @@ -508,7 +508,7 @@ const VideoPlayer: React.FC = () => { }, 1000); } completeOpeningAnimation(); - controlsTimeout.current = setTimeout(hideControls, 3000); + controlsTimeout.current = setTimeout(hideControls, 5000); } }; @@ -681,7 +681,7 @@ const VideoPlayer: React.FC = () => { useNativeDriver: true, }).start(); if (newShowControls) { - controlsTimeout.current = setTimeout(hideControls, 3000); + controlsTimeout.current = setTimeout(hideControls, 5000); } return newShowControls; });