gre / gl-react

gl-react – React library to write and compose WebGL shaders

Home Page:https://gl-react-cookbook.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

commented

@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:

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)