You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: