Don't require rate to be defined

This commit is contained in:
Ivan Malison 2024-10-13 20:45:25 -06:00
parent 81e864c0e1
commit 68cbe3c4b1

View File

@ -228,7 +228,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
}, [rate]); }, [rate]);
useEffect(() => { useEffect(() => {
if (!nativeRef.current || rate === undefined) { if (!nativeRef.current) {
console.log("Not starting shaka yet bc undefined") console.log("Not starting shaka yet bc undefined")
return; return;
} }