# DecodeOneFrameUtil.Listener

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

*** ** * ** ***


```
public interface DecodeOneFrameUtil.Listener
```

<br />

*** ** * ** ***

Listener for decoding events.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/test/utils/DecodeOneFrameUtil.Listener#onContainerExtracted(android.media.MediaFormat)(https://developer.android.com/reference/android/media/MediaFormat.html mediaFormat)` Called when the video `https://developer.android.com/reference/android/media/MediaFormat.html` is extracted from the container. |
| `abstract void` | `https://developer.android.com/reference/androidx/media3/test/utils/DecodeOneFrameUtil.Listener#onFrameDecoded(android.media.MediaFormat)(https://developer.android.com/reference/android/media/MediaFormat.html mediaFormat)` Called when the video `https://developer.android.com/reference/android/media/MediaFormat.html` is read by the decoder from the byte stream, after a frame is decoded. |

## Public methods

### onContainerExtracted

```
abstract void onContainerExtracted(MediaFormat mediaFormat)
```

Called when the video `https://developer.android.com/reference/android/media/MediaFormat.html` is extracted from the container.

### onFrameDecoded

```
abstract void onFrameDecoded(MediaFormat mediaFormat)
```

Called when the video `https://developer.android.com/reference/android/media/MediaFormat.html` is read by the decoder from the byte stream, after a frame is decoded.