> Documentation index: https://developer.android.com/reference/llms.txt

# DashManifest

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

*** ** * ** ***


```
@UnstableApi
public class DashManifest implements FilterableManifest<DashManifest>
```

<br />

*** ** * ** ***

Represents a DASH media presentation description (mpd), as defined by ISO/IEC 23009-1:2014 Section 5.3.1.2.

## Summary

| ### Public fields |
|---|---|
| `final long` | `availabilityStartTimeMs` The `availabilityStartTime` value in milliseconds since epoch, or `TIME_UNSET` if not present. |
| `final @Nullable ContentSteering` | `contentSteering` The `ContentSteering`, or `null` if not present. |
| `final long` | `durationMs` The duration of the presentation in milliseconds, or `TIME_UNSET` if not applicable. |
| `final boolean` | `dynamic` Whether the manifest has value "dynamic" for the `type` attribute. |
| `final @Nullable Uri` | `location` **This field is deprecated.** Use `locations` instead. <br /> |
| `final ImmutableList<Location>` | `locations` The locations to request future updates of the DASH media presentation description (mpd). |
| `final long` | `minBufferTimeMs` The `minBufferTime` value in milliseconds, or `TIME_UNSET` if not present. |
| `final long` | `minUpdatePeriodMs` The `minimumUpdatePeriod` value in milliseconds, or `TIME_UNSET` if not applicable. |
| `final @Nullable ProgramInformation` | `programInformation` The `ProgramInformation`, or null if not present. |
| `final long` | `publishTimeMs` The `publishTime` value in milliseconds since epoch, or `TIME_UNSET` if not present. |
| `final @Nullable ServiceDescriptionElement` | `serviceDescription` The `ServiceDescriptionElement`, or null if not present. |
| `final long` | `suggestedPresentationDelayMs` The `suggestedPresentationDelay` value in milliseconds, or `TIME_UNSET` if not present. |
| `final long` | `timeShiftBufferDepthMs` The `timeShiftBufferDepth` value in milliseconds, or `TIME_UNSET` if not present. |
| `final @Nullable UtcTimingElement` | `utcTiming` The `UtcTimingElement`, or null if not present. |

| ### Public constructors |
|---|
| `[DashManifest](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/DashManifest#DashManifest(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,android.net.Uri,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>))( long availabilityStartTimeMs, long durationMs, long minBufferTimeMs, boolean dynamic, long minUpdatePeriodMs, long timeShiftBufferDepthMs, long suggestedPresentationDelayMs, long publishTimeMs, @Nullable ProgramInformation programInformation, @Nullable UtcTimingElement utcTiming, @Nullable ServiceDescriptionElement serviceDescription, @Nullable Uri location, List<Period> periods )` **This method is deprecated.** Use `DashManifest` instead. <br /> |
| `[DashManifest](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/DashManifest#DashManifest(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>,java.util.List<androidx.media3.exoplayer.dash.manifest.Location>))( long availabilityStartTimeMs, long durationMs, long minBufferTimeMs, boolean dynamic, long minUpdatePeriodMs, long timeShiftBufferDepthMs, long suggestedPresentationDelayMs, long publishTimeMs, @Nullable ProgramInformation programInformation, @Nullable UtcTimingElement utcTiming, @Nullable ServiceDescriptionElement serviceDescription, List<Period> periods, List<Location> locations )` **This method is deprecated.** Use `DashManifest` instead. <br /> |
| `DashManifest( long availabilityStartTimeMs, long durationMs, long minBufferTimeMs, boolean dynamic, long minUpdatePeriodMs, long timeShiftBufferDepthMs, long suggestedPresentationDelayMs, long publishTimeMs, @Nullable ProgramInformation programInformation, @Nullable UtcTimingElement utcTiming, @Nullable ServiceDescriptionElement serviceDescription, List<Period> periods, List<Location> locations, @Nullable ContentSteering contentSteering )` |

| ### Public methods |
|---|---|
| `final DashManifest` | `copy(List<StreamKey> streamKeys)` Returns a copy of the manifest including only the streams specified by the given keys. |
| `final Period` | `getPeriod(int index)` |
| `final int` | `getPeriodCount()` |
| `final long` | `getPeriodDurationMs(int index)` |
| `final long` | `getPeriodDurationUs(int index)` |

## Public fields

### availabilityStartTimeMs

```
public final long availabilityStartTimeMs
```

The `availabilityStartTime` value in milliseconds since epoch, or `TIME_UNSET` if not present.

### contentSteering

```
public final @Nullable ContentSteering contentSteering
```

The `ContentSteering`, or `null` if not present.

### durationMs

```
public final long durationMs
```

The duration of the presentation in milliseconds, or `TIME_UNSET` if not applicable.

### dynamic

```
public final boolean dynamic
```

Whether the manifest has value "dynamic" for the `type` attribute.

### location

```
public final @Nullable Uri location
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `locations` instead.

### locations

```
public final ImmutableList<Location> locations
```

The locations to request future updates of the DASH media presentation description (mpd).

### minBufferTimeMs

```
public final long minBufferTimeMs
```

The `minBufferTime` value in milliseconds, or `TIME_UNSET` if not present.

### minUpdatePeriodMs

```
public final long minUpdatePeriodMs
```

The `minimumUpdatePeriod` value in milliseconds, or `TIME_UNSET` if not applicable.

### programInformation

```
public final @Nullable ProgramInformation programInformation
```

The `ProgramInformation`, or null if not present.

### publishTimeMs

```
public final long publishTimeMs
```

The `publishTime` value in milliseconds since epoch, or `TIME_UNSET` if not present.

### serviceDescription

```
public final @Nullable ServiceDescriptionElement serviceDescription
```

The `ServiceDescriptionElement`, or null if not present.

### suggestedPresentationDelayMs

```
public final long suggestedPresentationDelayMs
```

The `suggestedPresentationDelay` value in milliseconds, or `TIME_UNSET` if not present.

### timeShiftBufferDepthMs

```
public final long timeShiftBufferDepthMs
```

The `timeShiftBufferDepth` value in milliseconds, or `TIME_UNSET` if not present.

### utcTiming

```
public final @Nullable UtcTimingElement utcTiming
```

The `UtcTimingElement`, or null if not present. Defined in DVB A168:7/2016, Section 4.7.2.

## Public constructors

### DashManifest

```
public [DashManifest](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/DashManifest#DashManifest(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,android.net.Uri,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>))(
    long availabilityStartTimeMs,
    long durationMs,
    long minBufferTimeMs,
    boolean dynamic,
    long minUpdatePeriodMs,
    long timeShiftBufferDepthMs,
    long suggestedPresentationDelayMs,
    long publishTimeMs,
    @Nullable ProgramInformation programInformation,
    @Nullable UtcTimingElement utcTiming,
    @Nullable ServiceDescriptionElement serviceDescription,
    @Nullable Uri location,
    List<Period> periods
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `DashManifest` instead.

### DashManifest

```
public [DashManifest](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/DashManifest#DashManifest(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>,java.util.List<androidx.media3.exoplayer.dash.manifest.Location>))(
    long availabilityStartTimeMs,
    long durationMs,
    long minBufferTimeMs,
    boolean dynamic,
    long minUpdatePeriodMs,
    long timeShiftBufferDepthMs,
    long suggestedPresentationDelayMs,
    long publishTimeMs,
    @Nullable ProgramInformation programInformation,
    @Nullable UtcTimingElement utcTiming,
    @Nullable ServiceDescriptionElement serviceDescription,
    List<Period> periods,
    List<Location> locations
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `DashManifest` instead.

### DashManifest

```
public DashManifest(
    long availabilityStartTimeMs,
    long durationMs,
    long minBufferTimeMs,
    boolean dynamic,
    long minUpdatePeriodMs,
    long timeShiftBufferDepthMs,
    long suggestedPresentationDelayMs,
    long publishTimeMs,
    @Nullable ProgramInformation programInformation,
    @Nullable UtcTimingElement utcTiming,
    @Nullable ServiceDescriptionElement serviceDescription,
    List<Period> periods,
    List<Location> locations,
    @Nullable ContentSteering contentSteering
)
```

## Public methods

### copy

```
public final DashManifest copy(List<StreamKey> streamKeys)
```

Returns a copy of the manifest including only the streams specified by the given keys. If the manifest is unchanged then the instance may return itself.

| Parameters |
|---|---|
| `List<StreamKey> streamKeys` | A non-empty list of stream keys. |

| Returns |
|---|---|
| `DashManifest` | The filtered manifest. |

### getPeriod

```
public final Period getPeriod(int index)
```

### getPeriodCount

```
public final int getPeriodCount()
```

### getPeriodDurationMs

```
public final long getPeriodDurationMs(int index)
```

### getPeriodDurationUs

```
public final long getPeriodDurationUs(int index)
```