mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
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:
parent
cfb8ee56cf
commit
0d7882d565
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue