ScreenRecordingSample
ScreenRecordingSample copied to clipboard
First frame is always black
All my video records have first black frames.
move ` mDrawer.draw(mTexId, mTexMatrix, 0);
// drawBox(); mEncoderSurface.swap();
// EGLFor models that hang up if you do not draw on the off screen for retention workaround
makeCurrent();
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
GLES20.glFlush();`
into if (local_request_draw) for fix first frame black