# CodecParametersChangeListener

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/CodecParametersChangeListener.java+class:androidx.media3.exoplayer.CodecParametersChangeListener)

*** ** * ** ***


```
@UnstableApi
public interface CodecParametersChangeListener
```

<br />

*** ** * ** ***

A listener for changes to codec parameters.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/exoplayer/CodecParametersChangeListener#onCodecParametersChanged(androidx.media3.exoplayer.CodecParameters)(https://developer.android.com/reference/androidx/media3/exoplayer/CodecParameters codecParameters)` Called when one or more of the parameters this listener was registered for have changed. |

## Public methods

### onCodecParametersChanged

```
abstract void onCodecParametersChanged(CodecParameters codecParameters)
```

Called when one or more of the parameters this listener was registered for have changed.

The provided `https://developer.android.com/reference/androidx/media3/exoplayer/CodecParameters` object represents the new state and contains entries for the keys this listener is subscribed to, but only if they are currently reported by the codec.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/CodecParameters codecParameters` | A `https://developer.android.com/reference/androidx/media3/exoplayer/CodecParameters` instance containing the current values for the keys this listener is subscribed to. |