gl-react icon indicating copy to clipboard operation
gl-react copied to clipboard

react-native-video is not working inside GL.Node

Open hamzashahbaz opened this issue 6 years ago • 6 comments
trafficstars

Is it possible to use react-native-video inside GL.Node?

hamzashahbaz avatar Apr 19 '19 22:04 hamzashahbaz

@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 avatar Jan 01 '20 14:01 gre

@gre any success on this? I'm also interested to use this approach for making video filters with GL

ddereszewski avatar Mar 06 '20 15:03 ddereszewski

I'm also interested!

Estebank94 avatar Mar 18 '20 23:03 Estebank94

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:

  • https://github.com/expo/expo-three/issues/3#issuecomment-406091654

bastienrobert avatar Apr 11 '20 15:04 bastienrobert

You may want to look at this; https://github.com/gre/webgltexture-loader

demirhancosku avatar May 10 '20 01:05 demirhancosku

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)

bastienrobert avatar May 10 '20 10:05 bastienrobert