# AlternativeMpdEvent

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/AlternativeMpdEvent.java+class:androidx.media3.exoplayer.dash.manifest.AlternativeMpdEvent)

*** ** * ** ***


```
@UnstableApi
class AlternativeMpdEvent
```

<br />

*** ** * ** ***

An Alternative MPD Insertion or Replacement event, as defined by ISO/IEC 23009-1 clause 5.16.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Builder` A builder for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent` instances. |
| `@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/java/lang/annotation/ElementType.html#TYPE_USE) @https://developer.android.com/reference/kotlin/androidx/annotation/IntDef(value = ) annotation https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.NoJumpMode` The no-jump mode. |
| `@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/java/lang/annotation/ElementType.html#TYPE_USE) @https://developer.android.com/reference/kotlin/androidx/annotation/IntDef(value = ) annotation https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Type` The type of the event. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US() = 60000000` The default earliest resolution time offset in microseconds (60 seconds). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#NO_JUMP_ALL() = 1` All skipped no-jump events are executed (`@noJump="1"`). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#NO_JUMP_LATEST() = 2` Only the latest skipped no-jump event is executed (`@noJump="2"`). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#NO_JUMP_NONE() = 0` The active interval may be skipped by seeking (`@noJump="0"`). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#SCHEME_ID_URI_INSERT() = "urn:mpeg:dash:event:alternativeMPD:insert:2025"` The scheme URI of Alternative MPD Insertion events. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#SCHEME_ID_URI_REPLACE() = "urn:mpeg:dash:event:alternativeMPD:replace:2025"` The scheme URI of Alternative MPD Replacement events. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#TYPE_INSERT() = 0` An Alternative MPD Insertion event (`InsertPresentation`). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#TYPE_REPLACE() = 1` An Alternative MPD Replacement event (`ReplacePresentation`). |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Builder!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#buildUpon()()` Returns a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Builder` initialized with the values of this instance. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#clip()` The replacement `@clip` value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#durationUs()` The duration of the active interval in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the event is active until the end of the period. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#earliestResolutionTimeOffsetUs()` The earliest resolution time offset in microseconds before `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#presentationTimeUs()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#eventStreamValue()` The `EventStream@value`, or the empty string if absent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#executeOnce()` Whether the event is executed only the first time its active interval is traversed. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#id()` The `Event@id`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#isUpdate()` Whether `Event@status` is `"update"`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#maxDurationUs()` APDmax in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unbounded. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.NoJumpMode https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#noJump()` The `@noJump` mode. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#presentationTimeUs()` PRT in microseconds, relative to the start of the period. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#returnOffsetUs()` The replacement `@returnOffset` in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if absent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#serviceDescriptionId()` The `@serviceDescriptionId`, or null if absent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#skipAfterUs()` The `@skipAfter` offset in microseconds. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#startWithOffset()` The replacement `@startWithOffset` value. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#supplementalProperties()` The `SupplementalProperty` descriptors of the presentation element. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Type https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#type()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Type` of the event. |
| `https://developer.android.com/reference/android/net/Uri.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#uri()` The resolved URI of the alternative MPD, including any MPD anchor fragment. |

## Constants

### DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US

```
const val DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US = 60000000: Long
```

The default earliest resolution time offset in microseconds (60 seconds).

### NO_JUMP_ALL

```
const val NO_JUMP_ALL = 1: Int
```

All skipped no-jump events are executed (`@noJump="1"`).

### NO_JUMP_LATEST

```
const val NO_JUMP_LATEST = 2: Int
```

Only the latest skipped no-jump event is executed (`@noJump="2"`).

### NO_JUMP_NONE

```
const val NO_JUMP_NONE = 0: Int
```

The active interval may be skipped by seeking (`@noJump="0"`).

### SCHEME_ID_URI_INSERT

```
const val SCHEME_ID_URI_INSERT = "urn:mpeg:dash:event:alternativeMPD:insert:2025": String!
```

The scheme URI of Alternative MPD Insertion events.

### SCHEME_ID_URI_REPLACE

```
const val SCHEME_ID_URI_REPLACE = "urn:mpeg:dash:event:alternativeMPD:replace:2025": String!
```

The scheme URI of Alternative MPD Replacement events.

### TYPE_INSERT

```
const val TYPE_INSERT = 0: Int
```

An Alternative MPD Insertion event (`InsertPresentation`).

### TYPE_REPLACE

```
const val TYPE_REPLACE = 1: Int
```

An Alternative MPD Replacement event (`ReplacePresentation`).

## Public functions

### buildUpon

```
fun buildUpon(): AlternativeMpdEvent.Builder!
```

Returns a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Builder` initialized with the values of this instance.

### equals

```
fun equals(o: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```

## Public properties

### clip

```
val clip: Boolean
```

The replacement `@clip` value. Always true for insertion events.

### durationUs

```
val durationUs: Long
```

The duration of the active interval in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the event is active until the end of the period.

### earliestResolutionTimeOffsetUs

```
val earliestResolutionTimeOffsetUs: Long
```

The earliest resolution time offset in microseconds before `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent#presentationTimeUs()`.

### eventStreamValue

```
val eventStreamValue: String!
```

The `EventStream@value`, or the empty string if absent.

### executeOnce

```
val executeOnce: Boolean
```

Whether the event is executed only the first time its active interval is traversed.

### id

```
val id: Long
```

The `Event@id`.

### isUpdate

```
val isUpdate: Boolean
```

Whether `Event@status` is `"update"`. Always false for insertion events.

### maxDurationUs

```
val maxDurationUs: Long
```

APDmax in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unbounded. Zero disables the event.

### noJump

```
@AlternativeMpdEvent.NoJumpMode
val noJump: Int
```

The `@noJump` mode.

### presentationTimeUs

```
val presentationTimeUs: Long
```

PRT in microseconds, relative to the start of the period.

### returnOffsetUs

```
val returnOffsetUs: Long
```

The replacement `@returnOffset` in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if absent.

### serviceDescriptionId

```
val serviceDescriptionId: String?
```

The `@serviceDescriptionId`, or null if absent.

### skipAfterUs

```
val skipAfterUs: Long
```

The `@skipAfter` offset in microseconds. Never negative.

### startWithOffset

```
val startWithOffset: Boolean
```

The replacement `@startWithOffset` value. Always false for insertion events.

### supplementalProperties

```
val supplementalProperties: ImmutableList<Descriptor!>!
```

The `SupplementalProperty` descriptors of the presentation element.

### type

```
@AlternativeMpdEvent.Type
val type: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AlternativeMpdEvent.Type` of the event.

### uri

```
val uri: Uri!
```

The resolved URI of the alternative MPD, including any MPD anchor fragment.