ScreenRecordingSample icon indicating copy to clipboard operation
ScreenRecordingSample copied to clipboard

First frame is always black

Open hnvmeta opened this issue 8 years ago • 1 comments

All my video records have first black frames.

hnvmeta avatar Jan 10 '17 04:01 hnvmeta

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