Using SurfaceTexture in Android

后端 未结 4 614
遥遥无期
遥遥无期 2020-12-24 03:51

I want to play a video into an OpenGL texture on XOOM using Android 3.0. I have come across SurfaceTexture in the goole developer docs which has been added in API 11 http://

4条回答
  •  遥遥无期
    2020-12-24 04:07

    If using API level 11 to 14 you can just define GL_TEXTURE_EXTERNAL_OES yourself by placing

    private static final int GL_TEXTURE_EXTERNAL_OES = 0x8D65;
    

    in your code. This seems to work just fine for me.

提交回复
热议问题