# EventStream

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

*** ** * ** ***

<br />

```
@UnstableApi
class EventStream
```

<br />

*** ** * ** ***

A DASH in-MPD EventStream element, as defined by ISO/IEC 23009-1, 2nd edition, section 5.10.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#EventStream(java.lang.String,java.lang.String,long,long[],androidx.media3.extractor.metadata.emsg.EventMessage[])( schemeIdUri: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, timescale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, presentationTimesUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>!, events: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/emsg/EventMessage!>! )` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#id()()` A constructed id of this `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/emsg/EventMessage!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#events()` `https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/emsg/EventMessage`s in the event stream. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#presentationTimesUs()` Presentation time of the events in microsecond, sorted in ascending order. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#schemeIdUri()` The scheme URI. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#timescale()` The timescale in units per seconds, as defined in the manifest. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream#value()` The value of the event stream. |

## Public constructors

### EventStream

```
EventStream(
    schemeIdUri: String!,
    value: String!,
    timescale: Long,
    presentationTimesUs: LongArray<Long>!,
    events: Array<EventMessage!>!
)
```

## Public functions

### id

```
fun id(): String!
```

A constructed id of this `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/EventStream`. Equal to `schemeIdUri + "/" + value`.

## Public properties

### events

```
val events: Array<EventMessage!>!
```

`https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/emsg/EventMessage`s in the event stream.

### presentationTimesUs

```
val presentationTimesUs: Array<Long>!
```

Presentation time of the events in microsecond, sorted in ascending order.

### schemeIdUri

```
val schemeIdUri: String!
```

The scheme URI.

### timescale

```
val timescale: Long
```

The timescale in units per seconds, as defined in the manifest.

### value

```
val value: String!
```

The value of the event stream. Use empty string if not defined in manifest.