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.
This commit is contained in:
tapframe 2025-06-21 02:14:57 +05:30
parent cfb8ee56cf
commit 0d7882d565
2 changed files with 4 additions and 4 deletions

View file

@ -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;
});

View file

@ -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;
});