Replies: 1 comment
-
Yes I think that what react-native-skia-video does here is really the way
to go.
…On Sun, Jun 15, 2025 at 1:50 PM Artemiy Davydov ***@***.***> wrote:
Hello there! I am trying to obtain a HardwareBuffer / EGLSurface / or
anything else that I can use directly to obtain a texture in order to use
it with MediaCodec.
The best I can find is
https://github.com/AzzappApp/react-native-skia-video/blob/cf1aafeb4467531b3e9b8f6df9d720b696e22e98/android/src/main/java/com/azzapp/rnskv/VideoEncoder.java#L124
But I'm not sure if we have a better way to extract textures.
Does glBindTexture(GLES20.GL_TEXTURE_2D,
surface.getNativeTextureUnstable()) even work? Shouldn't the EGL context be
the same?
—
Reply to this email directly, view it on GitHub
<#3182>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVXEJ5HE7FVZOSEUCKT3DVMZLAVCNFSM6AAAAAB7LGHAWWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGQ2TINJRGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there! I am trying to obtain a HardwareBuffer / EGLSurface / or anything else that I can use directly to obtain a texture in order to use it with MediaCodec.
The best I can find is https://github.com/AzzappApp/react-native-skia-video/blob/cf1aafeb4467531b3e9b8f6df9d720b696e22e98/android/src/main/java/com/azzapp/rnskv/VideoEncoder.java#L124
But I'm not sure if we have a better way to extract textures.
Does glBindTexture(GLES20.GL_TEXTURE_2D, surface.getNativeTextureUnstable()) even work? Shouldn't the EGL context be the same?
Beta Was this translation helpful? Give feedback.
All reactions