# Mp4TimestampData

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

*** ** * ** ***

<br />

```
@UnstableApi
class Mp4TimestampData : Metadata.Entry
```

<br />

*** ** * ** ***

Stores MP4 timestamp data.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#TIMESCALE_UNSET() = -1` Represents an unset or unknown timescale. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#Mp4TimestampData(long,long)( creationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, modificationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` Creates an instance. |
| `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#Mp4TimestampData(long,long,long)( creationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, modificationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, timescale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` Creates an instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#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/container/Mp4TimestampData#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#toString()()` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#unixTimeToMp4TimeSeconds(long)(unixTimestampMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns an MP4 timestamp (in seconds since midnight, January 1, 1904) from a Unix epoch timestamp (in milliseconds since midnight, January 1, 1970). |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#creationTimestampSeconds()` The creation timestamp. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#modificationTimestampSeconds()` The modification timestamp. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#timescale()` The timescale of the movie. |

### Inherited functions

From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()()`

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
`https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()`

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(builder: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder!)`

Updates the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`.

## Constants

### TIMESCALE_UNSET

```
const val TIMESCALE_UNSET = -1: Int
```

Represents an unset or unknown timescale.

## Public constructors

### Mp4TimestampData

```
Mp4TimestampData(
    creationTimestampSeconds: Long,
    modificationTimestampSeconds: Long
)
```

Creates an instance.

The `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#timescale()` is set to `https://developer.android.com/reference/kotlin/androidx/media3/container/Mp4TimestampData#TIMESCALE_UNSET()`.

| Parameters |
|---|---|
| `creationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The creation time UTC in seconds since midnight, January 1, 1904. |
| `modificationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The modification time UTC in seconds since midnight, January 1, 1904. |

### Mp4TimestampData

```
Mp4TimestampData(
    creationTimestampSeconds: Long,
    modificationTimestampSeconds: Long,
    timescale: Long
)
```

Creates an instance.

| Parameters |
|---|---|
| `creationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The creation time UTC in seconds since midnight, January 1, 1904. |
| `modificationTimestampSeconds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The modification time UTC in seconds since midnight, January 1, 1904. |
| `timescale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The timescale of the movie. |

## Public functions

### equals

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

### hashCode

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

### toString

```
fun toString(): String!
```

### unixTimeToMp4TimeSeconds

```
java-static fun unixTimeToMp4TimeSeconds(unixTimestampMs: Long): Long
```

Returns an MP4 timestamp (in seconds since midnight, January 1, 1904) from a Unix epoch timestamp (in milliseconds since midnight, January 1, 1970).

## Public properties

### creationTimestampSeconds

```
val creationTimestampSeconds: Long
```

The creation timestamp.

### modificationTimestampSeconds

```
val modificationTimestampSeconds: Long
```

The modification timestamp.

### timescale

```
val timescale: Long
```

The timescale of the movie.