# OnInputFrameProcessedListener

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/OnInputFrameProcessedListener.java+class:androidx.media3.common.OnInputFrameProcessedListener)

*** ** * ** ***


```
@UnstableApi
public interface OnInputFrameProcessedListener
```

<br />

*** ** * ** ***

A listener for processing input frames.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/common/OnInputFrameProcessedListener#onInputFrameProcessed(int,long)(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 `https://developer.android.com/reference/androidx/media3/common/util/GlUtil#deleteSyncObject(long)` after use. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessingException` | Thrown if an error was encountered handling the event. |