Mp4TimestampData


@UnstableApi
class Mp4TimestampData : Metadata.Entry


Stores MP4 timestamp data.

Summary

Constants

const Parcelable.Creator<Mp4TimestampData!>!
const Int

Represents an unset or unknown timescale.

Public constructors

Mp4TimestampData(creationTimestampSeconds: Long)

Creates an instance.

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

Creates an instance.

Public functions

Int
Boolean
equals(obj: Any?)
Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Long

The creation timestamp.

Long

The modification timestamp.

Long

The timescale of the movie.

Inherited functions

From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

Format?

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

Unit

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Constants

CREATOR

const val CREATORParcelable.Creator<Mp4TimestampData!>!

TIMESCALE_UNSET

const val TIMESCALE_UNSET = -1: Int

Represents an unset or unknown timescale.

Public constructors

Mp4TimestampData

Mp4TimestampData(creationTimestampSeconds: Long)

Creates an instance.

Parameters
creationTimestampSeconds: Long

The creation time UTC in seconds since midnight, January 1, 1904. The modificationTimestampSeconds is set to TIME_UNSET and timescale is set to TIMESCALE_UNSET.

Mp4TimestampData

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

Creates an instance.

Parameters
creationTimestampSeconds: Long

The creation time UTC in seconds since midnight, January 1, 1904.

modificationTimestampSeconds: Long

The modification time UTC in seconds since midnight, January 1, 1904.

timescale: Long

The timescale of the movie.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

creationTimestampSeconds

val creationTimestampSecondsLong

The creation timestamp.

modificationTimestampSeconds

val modificationTimestampSecondsLong

The modification timestamp.

timescale

val timescaleLong

The timescale of the movie.