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 String
KEY_ANDROID_CAPTURE_FPS = "com.android.capture.fps"

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

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 for UTF-8 string.

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 localeIndicator,
    int typeIndicator
)

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

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

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

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_STRING

public static final int TYPE_INDICATOR_STRING = 1

The type indicator for UTF-8 string.

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

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)