DecoderPriorityProvider
fun interface DecoderPriorityProvider
Can be set on the DecoderConfig.decoderPriorityProvider to override the default decoder selection logic.
Types
| Name | Summary |
|---|---|
| DecoderContext | data class DecoderContext(val mediaType: MediaType, val isAd: Boolean) : Parcelable The context in which a new decoder is chosen. |
Functions
| Name | Summary |
|---|---|
| overrideDecodersPriority | abstract fun overrideDecodersPriority(context: DecoderPriorityProvider.DecoderContext, preferredDecoders: List<MediaCodecInfo>): List<MediaCodecInfo> 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. |