const videoRef = useRef(null);
I used this attribute exactly as it said on the tutorial also I cross checked the code but the
const onVideoPress = () => {
if (playing) {
videoRef?.current?.pause();
setPlaying(false);
} else {
videoRef?.current?.play();
setPlaying(true);
}
};
still has red lines and says Property 'pause' does not exist on type 'HTMLVideoElement'.
And I cant upload my videos.helppppppppp pleaseeeeeee
e
const videoRef = useRef(null);
I used this attribute exactly as it said on the tutorial also I cross checked the code but the
const onVideoPress = () => { if (playing) { videoRef?.current?.pause(); setPlaying(false); } else { videoRef?.current?.play(); setPlaying(true); } }; still has red lines and says Property 'pause' does not exist on type 'HTMLVideoElement'.
And I cant upload my videos.helppppppppp pleaseeeeeee e