Mp4TimestampData


@UnstableApi
public final class Mp4TimestampData implements Metadata.Entry


Stores MP4 timestamp data.

Summary

Constants

static final Parcelable.Creator<Mp4TimestampData>
static final int

Represents an unset or unknown timescale.

Public fields

final long

The creation timestamp.

final long

The modification timestamp.

final long

The timescale of the movie.

Public constructors

Mp4TimestampData(long creationTimestampSeconds)

Creates an instance.

Mp4TimestampData(
    long creationTimestampSeconds,
    long modificationTimestampSeconds,
    long timescale
)

Creates an instance.

Public methods

int
boolean
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

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

@Nullable 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.

void

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

Constants

CREATOR

public static final Parcelable.Creator<Mp4TimestampDataCREATOR

TIMESCALE_UNSET

public static final int TIMESCALE_UNSET = -1

Represents an unset or unknown timescale.

Public fields

creationTimestampSeconds

public final long creationTimestampSeconds

The creation timestamp.

modificationTimestampSeconds

public final long modificationTimestampSeconds

The modification timestamp.

timescale

public final long timescale

The timescale of the movie.

Public constructors

Mp4TimestampData

public Mp4TimestampData(long creationTimestampSeconds)

Creates an instance.

Parameters
long creationTimestampSeconds

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

public Mp4TimestampData(
    long creationTimestampSeconds,
    long modificationTimestampSeconds,
    long timescale
)

Creates an instance.

Parameters
long creationTimestampSeconds

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

long modificationTimestampSeconds

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

long timescale

The timescale of the movie.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)