Package com.banuba.renderer
Class VideoTextureProvider
java.lang.Object
com.banuba.renderer.VideoTextureProvider
- All Implemented Interfaces:
android.graphics.SurfaceTexture.OnFrameAvailableListener
public class VideoTextureProvider
extends Object
implements android.graphics.SurfaceTexture.OnFrameAvailableListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
android.view.Surface
createSurfaceTexture
(int glTexture) boolean
void
onFrameAvailable
(android.graphics.SurfaceTexture surfaceTexture) void
void
update()
-
Constructor Details
-
VideoTextureProvider
public VideoTextureProvider()
-
-
Method Details
-
createSurfaceTexture
public android.view.Surface createSurfaceTexture(int glTexture) -
removeSurfaceTexture
public void removeSurfaceTexture() -
update
public void update() -
isReadyOnGPU
public boolean isReadyOnGPU() -
checkValidAll
public static boolean checkValidAll() -
onFrameAvailable
public void onFrameAvailable(android.graphics.SurfaceTexture surfaceTexture) - Specified by:
onFrameAvailable
in interfaceandroid.graphics.SurfaceTexture.OnFrameAvailableListener
-