# OnInputFrameProcessedListener

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/common/OnInputFrameProcessedListener "View this page in Java")

<br />

```
@UnstableApi
interface OnInputFrameProcessedListener
```

<br />

*** ** * ** ***

A listener for processing input frames.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onInputFrameProcessed](https://developer.android.com/reference/kotlin/androidx/media3/common/OnInputFrameProcessedListener#onInputFrameProcessed(int,long))`(textureId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, syncObject: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` 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](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)    | The identifier of the processed texture.                                                                                                                                                                                                                                                                                                                                                                                     |
| `syncObject: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | 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](https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil#deleteSyncObject(long))after use. |

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