# AdaptationSet

Artifact: [androidx.media3:media3-exoplayer-dash](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/dash/manifest/AdaptationSet.java+class:androidx.media3.exoplayer.dash.manifest.AdaptationSet)

*** ** * ** ***


```
@UnstableApi
public class AdaptationSet
```

<br />

*** ** * ** ***

Represents a set of interchangeable encoded versions of a media content component.

## Summary

| ### Constants |
|---|---|
| `static final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET() = -1` Value of `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` indicating no value is set.= |

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor>` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#accessibilityDescriptors()` Accessibility descriptors in the adaptation set. |
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor>` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#essentialProperties()` Essential properties in the adaptation set. |
| `final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified. |
| `final https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime>` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#producerReferenceTimes()` `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set. |
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation>` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#representations()` `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set. |
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor>` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#supplementalProperties()` Supplemental properties in the adaptation set. |
| `final int` | `@https://developer.android.com/reference/androidx/media3/common/C.TrackType https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#type()` The `https://developer.android.com/reference/androidx/media3/common/C.TrackType` of the adaptation set. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#AdaptationSet(long,int,java.util.List<androidx.media3.exoplayer.dash.manifest.Representation>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,com.google.common.collect.ImmutableList<androidx.media3.exoplayer.dash.manifest.ProducerReferenceTime>)( long id, @https://developer.android.com/reference/androidx/media3/common/C.TrackType int type, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation> representations, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> accessibilityDescriptors, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> essentialProperties, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> supplementalProperties, https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime> producerReferenceTimes )` |

## Constants

### ID_UNSET

```
public static final long ID_UNSET = -1
```

Value of `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` indicating no value is set.=

## Public fields

### accessibilityDescriptors

```
public final List<Descriptor> accessibilityDescriptors
```

Accessibility descriptors in the adaptation set.

### essentialProperties

```
public final List<Descriptor> essentialProperties
```

Essential properties in the adaptation set.

### id

```
public final long id
```

A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified.

### producerReferenceTimes

```
public final ImmutableList<ProducerReferenceTime> producerReferenceTimes
```

`https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set.

### representations

```
public final List<Representation> representations
```

`https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set.

### supplementalProperties

```
public final List<Descriptor> supplementalProperties
```

Supplemental properties in the adaptation set.

### type

```
@C.TrackType
public final int type
```

The `https://developer.android.com/reference/androidx/media3/common/C.TrackType` of the adaptation set.

## Public constructors

### AdaptationSet

```
public AdaptationSet(
    long id,
    @C.TrackType int type,
    List<Representation> representations,
    List<Descriptor> accessibilityDescriptors,
    List<Descriptor> essentialProperties,
    List<Descriptor> supplementalProperties,
    ImmutableList<ProducerReferenceTime> producerReferenceTimes
)
```

| Parameters |
|---|---|
| `long id` | A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified. |
| `@https://developer.android.com/reference/androidx/media3/common/C.TrackType int type` | The `https://developer.android.com/reference/androidx/media3/common/C.TrackType` of the adaptation set. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation> representations` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> accessibilityDescriptors` | Accessibility descriptors in the adaptation set. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> essentialProperties` | Essential properties in the adaptation set. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Descriptor> supplementalProperties` | Supplemental properties in the adaptation set. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime> producerReferenceTimes` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set. |