OnInputFrameProcessedListener


@UnstableApi
interface OnInputFrameProcessedListener


A listener for processing input frames.

Summary

Public functions

Unit
onInputFrameProcessed(textureId: Int, syncObject: Long)

Called when the given input frame has been processed.

Public functions

onInputFrameProcessed

fun onInputFrameProcessed(textureId: Int, syncObject: Long): Unit

Called when the given input frame has been processed.

Parameters
textureId: Int

The identifier of the processed texture.

syncObject: Long

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.