react-native-video is not working inside GL.Node
hamzashahbaz opened this issue · comments
Is it possible to use react-native-video inside GL.Node?
@nikki93 @brentvatne @sjchmiela
Is there a way to connect a expo-av
Video in an expo-gl
GLView?
maybe the same way it was done for expo-camera
, except i don't find an equivalent of that
https://github.com/expo/expo/blob/87558b0d6314311a34c9a3a55b68b9a6ac831d7f/packages/expo-gl/ios/EXGL/EXGLObjectManager.m#L140
(NB for later: i started a PoC of that in branch expo-av, but it can't work until there is a way to connect things, and 'll need to create a lib webgltexture-loader-expo-av)
@gre any success on this? I'm also interested to use this approach for making video filters with GL
I'm also interested!
I'm not seeing any video type in texImage2D declarations on expo-gl, neither on the API documentation:
The pixels argument of texImage2D() must be null, an ArrayBuffer with pixel data, or an object of the form { localUri } where localUri is the file:// URI of an image in the device's file system.
@ddereszewski added a feature request on the canny
Related to:
You may want to look at this;
https://github.com/gre/webgltexture-loader
Actually it seems it’s not working for videos with this package:
(NB for later: i started a PoC of that in branch expo-av, but it can't work until there is a way to connect things, and 'll need to create a lib webgltexture-loader-expo-av)