MdtaMetadataEntry


@UnstableApi
class MdtaMetadataEntry : Metadata.Entry


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

Summary

Constants

const Parcelable.Creator<MdtaMetadataEntry!>!
const String!
KEY_ANDROID_CAPTURE_FPS = "com.android.capture.fps"

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

const Int

The type indicator for Float32.

const Int

The type indicator for 32-bit signed integer.

const Int

The type indicator for UTF-8 string.

Public constructors

MdtaMetadataEntry(
    key: String!,
    value: ByteArray!,
    localeIndicator: Int,
    typeIndicator: Int
)

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

Public functions

Int
Boolean
equals(obj: Any?)
Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

String!

The metadata key name.

Int

The four byte locale indicator.

Int

The four byte type indicator.

ByteArray<Byte>!

The payload.

Inherited functions

From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

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

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.

Unit

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

Constants

CREATOR

const val CREATORParcelable.Creator<MdtaMetadataEntry!>!

KEY_ANDROID_CAPTURE_FPS

const val KEY_ANDROID_CAPTURE_FPS = "com.android.capture.fps": String!

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

TYPE_INDICATOR_FLOAT32

const val TYPE_INDICATOR_FLOAT32 = 23: Int

The type indicator for Float32.

TYPE_INDICATOR_INT32

const val TYPE_INDICATOR_INT32 = 67: Int

The type indicator for 32-bit signed integer.

TYPE_INDICATOR_STRING

const val TYPE_INDICATOR_STRING = 1: Int

The type indicator for UTF-8 string.

Public constructors

MdtaMetadataEntry

MdtaMetadataEntry(
    key: String!,
    value: ByteArray!,
    localeIndicator: Int,
    typeIndicator: Int
)

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

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

key

val keyString!

The metadata key name.

localeIndicator

val localeIndicatorInt

The four byte locale indicator.

typeIndicator

val typeIndicatorInt

The four byte type indicator.

value

val valueByteArray<Byte>!

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