Android OpenGL ES onFrameAvailable were not called? -
i use opengl es playing video, use android mediaplayer. works. running last few seconds. onframeavailable method not called anymore, , can heard voice of video.
public void ondrawframe(gl10 paramgl10) { synchronized (this) { if (this.updatesurface) { this.msurface.updateteximage(); this.msurface.gettransformmatrix(this.mstmatrix); this.updatesurface = false; } } mydraw(); } public void onframeavailable(surfacetexture paramsurfacetexture) { this.updatesurface = true; requestrender(); }
how should do?
i had same problem videosurfaceview example. deleted line
setrendermode(glsurfaceview.rendermode_when_dirty);
and helped me
Comments
Post a Comment