# VideoCompositor.Listener

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

*** ** * ** ***


```
public interface VideoCompositor.Listener
```

<br />

*** ** * ** ***

Listener for errors.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor.Listener#onEnded()()` Called after `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor` has output its final output frame. |
| `abstract void` | `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor.Listener#onError(androidx.media3.common.VideoFrameProcessingException)(https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessingException exception)` Called when an exception occurs during asynchronous frame compositing. |

## Public methods

### onEnded

```
abstract void onEnded()
```

Called after `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor` has output its final output frame.

### onError

```
abstract void onError(VideoFrameProcessingException exception)
```

Called when an exception occurs during asynchronous frame compositing.

If this is called, the calling `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor` must immediately be `https://developer.android.com/reference/androidx/media3/effect/VideoCompositor#release()`.