diff --git a/src/routes/player/videoPlayer.jsx b/src/routes/player/videoPlayer.jsx index 1e2a188..86b8388 100644 --- a/src/routes/player/videoPlayer.jsx +++ b/src/routes/player/videoPlayer.jsx @@ -462,12 +462,13 @@ export const VideoPlayer = () => { const [appFullscreen, setAppFullScreen] = useState(false); useEffect(() => { - let timeout = null; if (showControls) { - window.clearTimeout(timeout); - timeout = setTimeout(() => { + let timeout = setTimeout(() => { setShowControls(false); }, 5000); + return () => { + clearTimeout(timeout); + }; } }, [showControls]); @@ -716,8 +717,10 @@ export const VideoPlayer = () => { @@ -750,9 +753,13 @@ export const VideoPlayer = () => { @@ -780,7 +787,7 @@ export const VideoPlayer = () => { role: "listbox", }} anchorOrigin={{ - vertical: "bottom", + vertical: "top", horizontal: "center", }} transformOrigin={{