# VideoSink.VideoFrameHandler

# VideoSink.VideoFrameHandler

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/video/VideoSink.VideoFrameHandler "View this page in Java")

<br />

```
interface VideoSink.VideoFrameHandler
```

<br />

*** ** * ** ***

Handler for a video frame.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [render](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoSink.VideoFrameHandler#render(long))`(renderTimestampNs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Renders the frame on the[input surface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoSink#getInputSurface()). |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [skip](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoSink.VideoFrameHandler#skip())`()` Drops the frame.                                                                                                                                                                                                                                               |

## Public functions

### render

```
fun render(renderTimestampNs: Long): Unit
```

Renders the frame on the[input surface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoSink#getInputSurface()).  

|                                             Parameters                                             |
|----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|
| `renderTimestampNs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The timestamp to associate with this frame when it is sent to the surface. |

### skip

```
fun skip(): Unit
```

Drops the frame.