|
|
|
|
@ -106,9 +106,10 @@ export const useVideoPlayer = ({ |
|
|
|
|
} |
|
|
|
|
}, [volume, videoRef]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
videoRef.current?.scrollIntoView({ behavior: 'smooth' }) |
|
|
|
|
}, [isFullscreen, videoRef]) |
|
|
|
|
// Todo this logic is responsible for scrolling to the player, delete if not required
|
|
|
|
|
// useEffect(() => {
|
|
|
|
|
// videoRef.current?.scrollIntoView({ behavior: 'smooth', block: 'end' })
|
|
|
|
|
// }, [isFullscreen, videoRef])
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
handleDurationChange, |
|
|
|
|
|