ScreenRecordingSample icon indicating copy to clipboard operation
ScreenRecordingSample copied to clipboard

First frame is always black

Open aiviapp opened this issue 9 years ago • 1 comments

All my video records have first black frames.

aiviapp avatar Jan 10 '17 04:01 aiviapp

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

huongnv251291 avatar Jul 16 '19 10:07 huongnv251291