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,
    modificationTimestampSeconds: Long
)

Creates an instance.

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

Creates an instance.

Public functions

Int
Boolean
equals(obj: Any?)
Int
String!
java-static Long
unixTimeToMp4TimeSeconds(unixTimestampMs: Long)

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

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,
    modificationTimestampSeconds: Long
)

Creates an instance.

The timescale is set to TIMESCALE_UNSET.

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.

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!

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).

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.