首先,需要初始化 SurfaceTexture 和GLSurfaceView。SurfaceTexture 用于接收图像流,而 GLSurfaceView 用于显示 OpenGL ES 渲染内容。 java SurfaceTexture surfaceTexture = new SurfaceTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES); GLSurfaceView