-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useVideoTexture doesn't work in react native #1953
Comments
I'm guessing it is due to this line: https://github.com/pmndrs/drei/blob/bed21ea90e8de8a1bfc0dc8129dbf723dd634699/src/core/useVideoTexture.tsx#L46C3-L46C80 Perhaps we should add:
according to MSDN undefined is the default option for |
Probably there's a problem with 'document' in line 54 too |
If HTML Video element cannot be created then I guess useVideoTexture can't work in ReactNative at all |
It seems you are right considering #1738. Any workaround? |
three
version: 0.164.1@react-three/fiber
version: 8.16.3@react-three/drei
version: 9.105.6node
version: 21.4.0npm
version: 10.2.4Problem description:
useVideoTexture throws an error:
TypeError: Cannot read property 'href' of undefined
This error is located at:
in Unknown
in FiberProvider
in CanvasWrapper (created by App)
in RCTView (created by View)
in View (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in RN3FDemo(RootComponent), js engine: hermes
Relevant code:
Any solution?
The text was updated successfully, but these errors were encountered: