Video Texture View Renderer
Constructors
Functions
Register a callback to be invoked when a new video frame has been received. This version uses the drawer of the EglRenderer that was passed in init.
Register a callback to be invoked when a new video frame has been received.
Post a task to clear the SurfaceView to a transparent uniform color.
Initialize this class, sharing resources with sharedContext
. The custom drawer
will be used for drawing frames on the EGLSurface. This class is responsible for calling release() on drawer
. It is allowed to call init() to reinitialize the renderer after a previous init()/release() cycle.
Block until any pending frame is returned and all GL resources released, even if an interrupt occurs. If an interrupt occurs during release(), the interrupt flag will be set. This function should be called before the Activity is destroyed and the EGLContext is still valid. If you don't call this function, the GL resources might leak.
Enables fixed size for the surface. This provides better performance but might be buggy on some devices. By default this is turned off.
Set how the video will fill the allowed layout area.