# MappingTrackSelector.MappedTrackInfo

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

*** ** * ** ***

<br />

```
class MappingTrackSelector.MappedTrackInfo
```

<br />

*** ** * ** ***

Provides mapped track information for each renderer.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = ) @https://developer.android.com/reference/kotlin/androidx/annotation/IntDef(value = ) annotation https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo.RendererSupport` Levels of renderer support. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS() = 2` The renderer has tracks mapped to it and at least one is of a supported type, but all such tracks exceed the renderer's capabilities. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#RENDERER_SUPPORT_NO_TRACKS() = 0` The renderer does not have any associated tracks. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#RENDERER_SUPPORT_PLAYABLE_TRACKS() = 3` The renderer has tracks mapped to it, and at least one such track is playable. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#RENDERER_SUPPORT_UNSUPPORTED_TRACKS() = 1` The renderer has tracks mapped to it, but all are unsupported. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.AdaptiveSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getAdaptiveSupport(int,int,boolean)( rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, includeCapabilitiesExceededTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Returns the extent to which a renderer supports adaptation between supported tracks in a specified `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.AdaptiveSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getAdaptiveSupport(int,int,int[])( rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, trackIndices: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>! )` Returns the extent to which a renderer supports adaptation between specified tracks within a `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.Capabilities https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getCapabilities(int,int,int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, trackIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.Capabilities` of the renderer for an individual track. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getRendererName(int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the name of the renderer at a given index. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo.RendererSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getRendererSupport(int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the extent to which a renderer can play the tracks that are mapped to it. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getRendererType(int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the track type that the renderer at a given index handles. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/TrackGroupArray!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackGroups(int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`s mapped to the renderer at the specified index. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)(rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, trackIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the extent to which an individual track is supported by the renderer. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo.RendererSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTypeSupport(int)(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType trackType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the extent to which tracks of a specified type are supported. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#rendererCount()` |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/TrackGroupArray!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#unmappedTrackGroups()` |

## Constants

### RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS

```
const val RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS = 2: Int
```

The renderer has tracks mapped to it and at least one is of a supported type, but all such tracks exceed the renderer's capabilities. In other words, `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_EXCEEDS_CAPABILITIES()` for at least one track mapped to the renderer, but does not return `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_HANDLED()` for any tracks mapped to the renderer.

### RENDERER_SUPPORT_NO_TRACKS

```
const val RENDERER_SUPPORT_NO_TRACKS = 0: Int
```

The renderer does not have any associated tracks.

### RENDERER_SUPPORT_PLAYABLE_TRACKS

```
const val RENDERER_SUPPORT_PLAYABLE_TRACKS = 3: Int
```

The renderer has tracks mapped to it, and at least one such track is playable. In other words, `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_HANDLED()` for at least one track mapped to the renderer.

### RENDERER_SUPPORT_UNSUPPORTED_TRACKS

```
const val RENDERER_SUPPORT_UNSUPPORTED_TRACKS = 1: Int
```

The renderer has tracks mapped to it, but all are unsupported. In other words, `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_DRM()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_SUBTYPE()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_TYPE()` for all tracks mapped to the renderer.

## Public functions

### getAdaptiveSupport

```
@RendererCapabilities.AdaptiveSupport
fun getAdaptiveSupport(
    rendererIndex: Int,
    groupIndex: Int,
    includeCapabilitiesExceededTracks: Boolean
): Int
```

Returns the extent to which a renderer supports adaptation between supported tracks in a specified `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`.

Tracks for which `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_HANDLED()` are always considered. Tracks for which `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_EXCEEDS_CAPABILITIES()` are also considered if ` includeCapabilitiesExceededTracks` is set to `true`. Tracks for which `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getTrackSupport(int,int,int)` returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_DRM()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_TYPE()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_UNSUPPORTED_SUBTYPE()` are never considered.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |
| `groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track group. |
| `includeCapabilitiesExceededTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether tracks that exceed the capabilities of the renderer are included when determining support. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.AdaptiveSupport`. |

### getAdaptiveSupport

```
@RendererCapabilities.AdaptiveSupport
fun getAdaptiveSupport(
    rendererIndex: Int,
    groupIndex: Int,
    trackIndices: IntArray<Int>!
): Int
```

Returns the extent to which a renderer supports adaptation between specified tracks within a `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |
| `groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track group. |
| `trackIndices: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` | The indices of the tracks in the track group for which to query support. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.AdaptiveSupport`. |

### getCapabilities

```
@RendererCapabilities.Capabilities
fun getCapabilities(rendererIndex: Int, groupIndex: Int, trackIndex: Int): Int
```

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.Capabilities` of the renderer for an individual track.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |
| `groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track group to which the track belongs. |
| `trackIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track within the track group. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RendererCapabilities.Capabilities`. |

### getRendererName

```
fun getRendererName(rendererIndex: Int): String!
```

Returns the name of the renderer at a given index.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The name of the renderer. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer#getName()` |   |

### getRendererSupport

```
@MappingTrackSelector.MappedTrackInfo.RendererSupport
fun getRendererSupport(rendererIndex: Int): Int
```

Returns the extent to which a renderer can play the tracks that are mapped to it.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo.RendererSupport`. |

### getRendererType

```
@C.TrackType
fun getRendererType(rendererIndex: Int): Int
```

Returns the track type that the renderer at a given index handles.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType` of the renderer. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer#getTrackType()` |   |

### getTrackGroups

```
fun getTrackGroups(rendererIndex: Int): TrackGroupArray!
```

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`s mapped to the renderer at the specified index.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/TrackGroupArray!` | The corresponding `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackGroup`s. |

### getTrackSupport

```
@C.FormatSupport
fun getTrackSupport(rendererIndex: Int, groupIndex: Int, trackIndex: Int): Int
```

Returns the extent to which an individual track is supported by the renderer.

| Parameters |
|---|---|
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The renderer index. |
| `groupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track group to which the track belongs. |
| `trackIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the track within the track group. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport`. |

### getTypeSupport

```
@MappingTrackSelector.MappedTrackInfo.RendererSupport
fun getTypeSupport(@C.TrackType trackType: Int): Int
```

Returns the extent to which tracks of a specified type are supported. This is the best level of support obtained from `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#getRendererSupport(int)` for all renderers that handle the specified type. If no such renderers exist then `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo#RENDERER_SUPPORT_NO_TRACKS()` is returned.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType trackType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/MappingTrackSelector.MappedTrackInfo.RendererSupport`. |

## Public properties

### rendererCount

```
val rendererCount: Int
```

### unmappedTrackGroups

```
val unmappedTrackGroups: TrackGroupArray!
```