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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -