Skip to content

qhyuan1992/OpenGLESRecorder

Repository files navigation

OpenGLESRecoder

###glrecorder is a library on Android which can record what you draw using opengl es. all you need to do are as follows

  • using GLRecoder.init() in onSurfaceChanged
init(int width, int height, EGLConfig eglConfig)
  • start or stop record at appropriate time
GLRecoder.startEncoder(new File("/sdcard/record.mp4"));

GLRecoder.stopEncoder();
  • add GLRecoder.beginDraw() before you draw a frame and GLRecoder.endDraw() after finish draw a frame, which may be look like this
GLRecoder.beginDraw();

drawSomething();

GLRecoder.endDraw();
  • do not forget add permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages