public interface

Metadata.Entry

 androidx.media3.common.Metadata.Entry

Subclasses:

HlsTrackMetadataEntry, InternalFrame, ApicFrame, MlltFrame, GeobFrame, UrlLinkFrame, ChapterTocFrame, BinaryFrame, TextInformationFrame, PrivFrame, CommentFrame, ChapterFrame, Id3Frame, EventMessage, VorbisComment, IcyHeaders, IcyInfo, MdtaMetadataEntry, MotionPhotoMetadata, SmtaMetadataEntry, SlowMotionData, AppInfoTable, PictureFrame, VorbisComment, SpliceCommand, TimeSignalCommand, SpliceScheduleCommand, SpliceNullCommand, SpliceInsertCommand, PrivateCommand, FakeMetadataEntry

Overview

A metadata entry.

Summary

Methods
public byte[]getWrappedMetadataBytes()

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

public FormatgetWrappedMetadataFormat()

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

public voidpopulateMediaMetadata(MediaMetadata.Builder builder)

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

Methods

public Format getWrappedMetadataFormat()

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

public byte[] getWrappedMetadataBytes()

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

public void populateMediaMetadata(MediaMetadata.Builder builder)

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

The order of the Metadata.Entry objects in the Metadata matters. If two Metadata.Entry entries attempt to populate the same MediaMetadata field, then the last one in the list is used.

Parameters:

builder: The builder to be updated.