OnInputFrameProcessedListener


@UnstableApi
public interface OnInputFrameProcessedListener


A listener for processing input frames.

Summary

Public methods

abstract void
onInputFrameProcessed(int textureId, long syncObject)

Called when the given input frame has been processed.

Public methods

onInputFrameProcessed

abstract void onInputFrameProcessed(int textureId, long syncObject)

Called when the given input frame has been processed.

Parameters
int textureId

The identifier of the processed texture.

long syncObject

A GL sync object (see https://www.khronos.org/opengl/wiki/Sync_Object) that has been inserted into the GL command stream after the last use of the texture. Value is 0 if and only if the GLES30#glFenceSync failed or the EGL context version is less than OpenGL 3.0. The sync object must be deleted after use.

Throws
androidx.media3.common.VideoFrameProcessingException

Thrown if an error was encountered handling the event.