don't play when ready on pause

This commit is contained in:
Samuel Newman
2024-08-05 12:11:38 +01:00
parent 6865382022
commit 058a898e28
@@ -493,6 +493,7 @@ function useVideoUtils(ref: React.RefObject<HTMLVideoElement>) {
if (!ref.current) return
ref.current.pause()
playWhenReadyRef.current = false
}, [ref])
const togglePlayPause = useCallback(() => {