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
|
if (!ref.current) return
|
||||||
|
|
||||||
ref.current.pause()
|
ref.current.pause()
|
||||||
|
playWhenReadyRef.current = false
|
||||||
}, [ref])
|
}, [ref])
|
||||||
|
|
||||||
const togglePlayPause = useCallback(() => {
|
const togglePlayPause = useCallback(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user