ThumbnailMetadata


@UnstableApi
public final class ThumbnailMetadata implements Metadata.Entry


Stores the presentation timestamp of a thumbnail.

Summary

Public fields

final long

The presentation timestamp of the thumbnail, in microseconds.

Public constructors

ThumbnailMetadata(long presentationTimeUs)

Creates an instance.

Public methods

boolean
int
String

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.

Public fields

presentationTimeUs

public final long presentationTimeUs

The presentation timestamp of the thumbnail, in microseconds.

Public constructors

ThumbnailMetadata

public ThumbnailMetadata(long presentationTimeUs)

Creates an instance.

Parameters
long presentationTimeUs

The presentation timestamp of the thumbnail, in microseconds.

Public methods

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()