Agora Java API Reference for Android
|
Public Member Functions | |
void | onFrameAvailable (SurfaceTexture surfaceTexture) |
long | getEglContextHandler () |
Surface | getRenderGlSurface () |
void | setTextureSize (final int width, final int height) |
void | dispose () |
VideoFrame | getAvailableTextureInfo (int waitTime) |
VideoFrame | getFakeTextureInfo () |
void | releaseRenderedTextureInfo (VideoFrame info) |
void | resetTextureBufferQueue () |
VideoFrame.TextureBuffer | textureCopy (final VideoFrame.TextureBuffer textureBuffer) |
Static Public Member Functions | |
static PlayerTextureHelper | create () |
Static Public Attributes | |
static final float[] | IDENTITY_MATRIX |
Static Protected Attributes | |
static final int | MAX_BUFFER_CNT = 12 |
|
static |
Construct a new SurfaceTextureHelperTest sharing OpenGL resources with |sharedContext|. A dedicated thread and handler is created for handling the SurfaceTexture. May return null if EGL fails to initialize a pixel buffer surface and make it current.
void io.agora.mediaplayer.gl.PlayerTextureHelper.dispose | ( | ) |
Call disconnect() to stop receiving frames. OpenGL resources are released and the handler is stopped when the texture frame has been released. You are guaranteed to not receive any more onFrame() after this function returns.
Implements io.agora.mediaplayer.IPlayerTextureHelper.
VideoFrame io.agora.mediaplayer.gl.PlayerTextureHelper.getAvailableTextureInfo | ( | int | waitTime | ) |
wait for most waitTime time;
Implements io.agora.mediaplayer.IPlayerTextureHelper.