Change controls hide delay from 3s to 2s

Reduce the delay for hiding controls from 3 seconds to 2 seconds.
This commit is contained in:
AdityasahuX07 2025-12-31 18:59:16 +05:30 committed by GitHub
parent 8daca53be3
commit 867458b52f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,7 +248,7 @@ const AndroidVideoPlayer: React.FC = () => {
if (!playerState.isDragging.current) {
playerState.setShowControls(false);
}
}, 3000); // 3 seconds delay
}, 2000); // 2 seconds delay
}
// Cleanup on unmount or when dependencies change