don't play when ready on pause
This commit is contained in:
@@ -493,6 +493,7 @@ function useVideoUtils(ref: React.RefObject<HTMLVideoElement>) {
|
||||
if (!ref.current) return
|
||||
|
||||
ref.current.pause()
|
||||
playWhenReadyRef.current = false
|
||||
}, [ref])
|
||||
|
||||
const togglePlayPause = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user