# ProducerReferenceTime

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

*** ** * ** ***


```
@UnstableApi
class ProducerReferenceTime
```

<br />

*** ** * ** ***

Represents a parsed ProducerReferenceTime element as defined in ISO/IEC 23009-1:2022 Section 5.12.

## 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/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/ProducerReferenceTime.ProducerReferenceTimeType` The type of the producer reference time source clock. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#ID_UNSET() = -1` Value of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#id()` indicating no value is set. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#TYPE_APPLICATION() = 2` Indicates wall-clock time was established at the application level. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#TYPE_CAPTURED() = 1` Indicates wall-clock time was established when the media was captured. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#TYPE_ENCODER() = 0` Indicates wall-clock time was established at the encoder. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#ProducerReferenceTime(long,boolean,int,java.lang.String,long,long,androidx.media3.exoplayer.dash.manifest.UtcTimingElement)( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, inband: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, applicationScheme: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, wallClockTimeMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, presentationTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, utcTiming: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement? )` Constructs a new instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#equals(java.lang.Object)(obj: 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/ProducerReferenceTime#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#applicationScheme()` The application scheme URI if `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#TYPE_APPLICATION()`, or `null` otherwise. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#id()` An identifier for the producer reference time, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#ID_UNSET()` if not specified. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#inband()` Whether the producer reference time is also present inband in the media segments. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#presentationTime()` The media presentation time corresponding to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#wallClockTimeMs()`, in the track's timescale, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#type()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType` indicating the type of timing source. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#utcTiming()` An optional `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement` specifying the UTC timing synchronization source. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#wallClockTimeMs()` The wall-clock time as a Unix epoch timestamp in milliseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified. |

## Constants

### ID_UNSET

```
const val ID_UNSET = -1: Long
```

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

### TYPE_APPLICATION

```
const val TYPE_APPLICATION = 2: Int
```

Indicates wall-clock time was established at the application level.

### TYPE_CAPTURED

```
const val TYPE_CAPTURED = 1: Int
```

Indicates wall-clock time was established when the media was captured.

### TYPE_ENCODER

```
const val TYPE_ENCODER = 0: Int
```

Indicates wall-clock time was established at the encoder.

## Public constructors

### ProducerReferenceTime

```
ProducerReferenceTime(
    id: Long,
    inband: Boolean,
    @ProducerReferenceTime.ProducerReferenceTimeType type: Int,
    applicationScheme: String?,
    wallClockTimeMs: Long,
    presentationTime: Long,
    utcTiming: UtcTimingElement?
)
```

Constructs a new instance.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | An identifier for the producer reference time, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#ID_UNSET()` if not specified. |
| `inband: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the producer reference time is also present inband. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType`. |
| `applicationScheme: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The application scheme URI, or null. |
| `wallClockTimeMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The wall-clock time in milliseconds since epoch, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified. |
| `presentationTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The presentation time in track timescale, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified. |
| `utcTiming: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement?` | An optional `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement`, or null. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### applicationScheme

```
val applicationScheme: String?
```

The application scheme URI if `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#TYPE_APPLICATION()`, or `null` otherwise.

### id

```
val id: Long
```

An identifier for the producer reference time, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#ID_UNSET()` if not specified.

### inband

```
val inband: Boolean
```

Whether the producer reference time is also present inband in the media segments.

### presentationTime

```
val presentationTime: Long
```

The media presentation time corresponding to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime#wallClockTimeMs()`, in the track's timescale, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified.

### type

```
@ProducerReferenceTime.ProducerReferenceTimeType
val type: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime.ProducerReferenceTimeType` indicating the type of timing source.

### utcTiming

```
val utcTiming: UtcTimingElement?
```

An optional `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/UtcTimingElement` specifying the UTC timing synchronization source.

### wallClockTimeMs

```
val wallClockTimeMs: Long
```

The wall-clock time as a Unix epoch timestamp in milliseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if not specified.