public interface SurfaceTextureCallback
| Modifier and Type | Method and Description |
|---|---|
int |
onDrawFrame(int texId,
int width,
int height,
float[] transformMatrix)
To be called in
android.opengl.GLSurfaceView.Renderer#onDrawFrame(GL10). |
void |
onSurfaceChanged(int width,
int height)
To be called in
android.opengl.GLSurfaceView.Renderer#onSurfaceChanged(GL10, int, int). |
void |
onSurfaceCreated()
Called when the surface is created or recreated.
|
void |
onSurfaceDestroyed()
Called after
CameraStreamingManager.pause() invoked |
void onSurfaceCreated()
android.opengl.GLSurfaceView.Renderer#onSurfaceCreated(GL10, EGLConfig)
invoked.void onSurfaceChanged(int width,
int height)
android.opengl.GLSurfaceView.Renderer#onSurfaceChanged(GL10, int, int).width - the width of the Surfaceheight - the height of the Surfacevoid onSurfaceDestroyed()
CameraStreamingManager.pause() invokedint onDrawFrame(int texId,
int width,
int height,
float[] transformMatrix)
android.opengl.GLSurfaceView.Renderer#onDrawFrame(GL10).texId - the texture ID of Camera SurfaceTexture object to be rendered.width - width of the drawing surface in pixels.height - height of the drawing surface in pixels.