Is there a way to grab the current rendered frame by VLC (on a TextureView or SurfaceView)?
I was directed to inject an OpenGL ES code snippet to where the VLC is rendering in order to get the current frame into a ByteBufferusing for example, GLES20.glReadPixels(...), then parsing that buffer into a Bitmap. However, it seams that VLC is making the rendering process in a native way where i searched the vlc-android sdk for OpenGL usages in java and i found nothing.
You can create a SurfaceTexture with OpenGl, send it to VLC and capture a frame with glReadPixels.
Anyway if you are using textureview you have getBitmap method but it is really slow.
Is there a way to grab the current rendered frame by VLC (on a TextureView or SurfaceView)?
I was directed to inject an OpenGL ES code snippet to where the VLC is rendering in order to get the current frame into a
ByteBuffer
using for example,GLES20.glReadPixels(...),
then parsing that buffer into a Bitmap. However, it seams that VLC is making the rendering process in a native way where i searched the vlc-android sdk for OpenGL usages in java and i found nothing.Thanks.