MdtaMetadataEntry


@UnstableApi
public final class MdtaMetadataEntry implements Metadata.Entry


Stores extensible metadata with handler type 'mdta'. See also the QuickTime File Format Specification.

Summary

Constants

static final Parcelable.Creator<MdtaMetadataEntry>
static final int

The default locale indicator which implies all speakers in all countries.

static final byte

The editable tracks samples are interleaved with the primary tracks samples.

static final byte

The editable tracks samples are in edit data MP4.

static final String
KEY_ANDROID_CAPTURE_FPS = "com.android.capture.fps"

Key for the capture frame rate (in frames per second).

static final String
KEY_EDITABLE_TRACKS_LENGTH = "editable.tracks.length"

Key for editable tracks box (edvd) length.

static final String
KEY_EDITABLE_TRACKS_MAP = "editable.tracks.map"

Key for editable tracks map.

static final String
KEY_EDITABLE_TRACKS_OFFSET = "editable.tracks.offset"

Key for editable tracks box (edvd) offset.

static final String
KEY_EDITABLE_TRACKS_SAMPLES_LOCATION = "editable.tracks.samples.location"

Key for editable tracks samples location.

static final int

The type indicator for an 8-bit unsigned integer.

static final int

The type indicator for Float32.

static final int

The type indicator for 32-bit signed integer.

static final int

The type indicator to use when no type needs to be indicated.

static final int

The type indicator for UTF-8 string.

static final int

The type indicator for 64-bit unsigned integer.

Public fields

final String

The metadata key name.

final int

The four byte locale indicator.

final int

The four byte type indicator.

final byte[]

The payload.

Public constructors

MdtaMetadataEntry(String key, byte[] value, int typeIndicator)

Creates a new metadata entry for the specified metadata key/value with default locale indicator.

MdtaMetadataEntry(
    String key,
    byte[] value,
    int localeIndicator,
    int typeIndicator
)

Creates a new metadata entry for the specified metadata key/value.

Public methods

int
boolean
List<Integer>

Returns the editable track types from the editable tracks map metadata.

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<MdtaMetadataEntryCREATOR

DEFAULT_LOCALE_INDICATOR

public static final int DEFAULT_LOCALE_INDICATOR = 0

The default locale indicator which implies all speakers in all countries.

EDITABLE_TRACKS_SAMPLES_LOCATION_INTERLEAVED

public static final byte EDITABLE_TRACKS_SAMPLES_LOCATION_INTERLEAVED = 1

The editable tracks samples are interleaved with the primary tracks samples.

EDITABLE_TRACKS_SAMPLES_LOCATION_IN_EDIT_DATA_MP4

public static final byte EDITABLE_TRACKS_SAMPLES_LOCATION_IN_EDIT_DATA_MP4 = 0

The editable tracks samples are in edit data MP4.

KEY_ANDROID_CAPTURE_FPS

public static final String KEY_ANDROID_CAPTURE_FPS = "com.android.capture.fps"

Key for the capture frame rate (in frames per second).

KEY_EDITABLE_TRACKS_LENGTH

public static final String KEY_EDITABLE_TRACKS_LENGTH = "editable.tracks.length"

Key for editable tracks box (edvd) length.

KEY_EDITABLE_TRACKS_MAP

public static final String KEY_EDITABLE_TRACKS_MAP = "editable.tracks.map"

Key for editable tracks map.

KEY_EDITABLE_TRACKS_OFFSET

public static final String KEY_EDITABLE_TRACKS_OFFSET = "editable.tracks.offset"

Key for editable tracks box (edvd) offset.

KEY_EDITABLE_TRACKS_SAMPLES_LOCATION

public static final String KEY_EDITABLE_TRACKS_SAMPLES_LOCATION = "editable.tracks.samples.location"

Key for editable tracks samples location.

TYPE_INDICATOR_8_BIT_UNSIGNED_INT

public static final int TYPE_INDICATOR_8_BIT_UNSIGNED_INT = 75

The type indicator for an 8-bit unsigned integer.

TYPE_INDICATOR_FLOAT32

public static final int TYPE_INDICATOR_FLOAT32 = 23

The type indicator for Float32.

TYPE_INDICATOR_INT32

public static final int TYPE_INDICATOR_INT32 = 67

The type indicator for 32-bit signed integer.

TYPE_INDICATOR_RESERVED

public static final int TYPE_INDICATOR_RESERVED = 0

The type indicator to use when no type needs to be indicated.

TYPE_INDICATOR_STRING

public static final int TYPE_INDICATOR_STRING = 1

The type indicator for UTF-8 string.

TYPE_INDICATOR_UNSIGNED_INT64

public static final int TYPE_INDICATOR_UNSIGNED_INT64 = 78

The type indicator for 64-bit unsigned integer.

Public fields

key

public final String key

The metadata key name.

localeIndicator

public final int localeIndicator

The four byte locale indicator.

typeIndicator

public final int typeIndicator

The four byte type indicator.

value

public final byte[] value

The payload. The interpretation of the value depends on typeIndicator.

Public constructors

MdtaMetadataEntry

public MdtaMetadataEntry(String key, byte[] value, int typeIndicator)

Creates a new metadata entry for the specified metadata key/value with default locale indicator.

MdtaMetadataEntry

public MdtaMetadataEntry(
    String key,
    byte[] value,
    int localeIndicator,
    int typeIndicator
)

Creates a new metadata entry for the specified metadata key/value.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

getEditableTrackTypesFromMap

public List<IntegergetEditableTrackTypesFromMap()

Returns the editable track types from the editable tracks map metadata.

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)