---
updatedAt: 2026-06-12T07:19:31.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# DecoderPriorityProvider

com.bitmovin.player.api.decoder

# DecoderPriorityProvider

fun interface DecoderPriorityProvider

Can be set on the [DecoderConfig.decoderPriorityProvider](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-decoder-decoder-config) to override the default decoder selection logic.

## Types

| Name           | Summary                                                                                                                                                                                                                                                                                                                                                   |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DecoderContext | data class DecoderContext(val mediaType: [MediaType](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-media-media-type), val isAd: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)) : [Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html)<br>The context in which a new decoder is chosen. |

## Functions

| Name                     | Summary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| overrideDecodersPriority | abstract fun overrideDecodersPriority(context: DecoderPriorityProvider.DecoderContext, preferredDecoders: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)<[MediaCodecInfo](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-decoder-media-codec-info)>): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)<[MediaCodecInfo](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-decoder-media-codec-info)><br>The context provides additional information about the context in which a new decoder is chosen. The preferredDecoders list contains all available decoders for the given context in the order they will be used by the player. |