Don't require rate to be defined
This commit is contained in:
parent
81e864c0e1
commit
68cbe3c4b1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user