adrianhajdin / project_tiktik

https://jsmastery.pro
598 stars 180 forks source link

VideoCard .tsx issue on uploading! #10

Open Cyb3r7ron opened 2 years ago

Cyb3r7ron commented 2 years ago

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 Capssture e

thops1925 commented 2 years ago

Wondering what's the red line say