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 Int

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

const Byte

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

const Byte

The editable tracks samples are in edit data MP4.

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

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

const String!
KEY_EDITABLE_TRACKS_LENGTH = "editable.tracks.length"

Key for editable tracks box (edvd) length.

const String!
KEY_EDITABLE_TRACKS_MAP = "editable.tracks.map"

Key for editable tracks map.

const String!
KEY_EDITABLE_TRACKS_OFFSET = "editable.tracks.offset"

Key for editable tracks box (edvd) offset.

const String!
KEY_EDITABLE_TRACKS_SAMPLES_LOCATION = "editable.tracks.samples.location"

Key for editable tracks samples location.

const Int

The type indicator for an 8-bit unsigned integer.

const Int

The type indicator for Float32.

const Int

The type indicator for 32-bit signed integer.

const Int

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

const Int

The type indicator for UTF-8 string.

const Int

The type indicator for 64-bit unsigned integer.

Public constructors

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

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

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?)
(Mutable)List<Int!>!

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

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

DEFAULT_LOCALE_INDICATOR

const val DEFAULT_LOCALE_INDICATOR = 0: Int

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

EDITABLE_TRACKS_SAMPLES_LOCATION_INTERLEAVED

const val EDITABLE_TRACKS_SAMPLES_LOCATION_INTERLEAVED = 1: Byte

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

EDITABLE_TRACKS_SAMPLES_LOCATION_IN_EDIT_DATA_MP4

const val EDITABLE_TRACKS_SAMPLES_LOCATION_IN_EDIT_DATA_MP4 = 0: Byte

The editable tracks samples are in edit data MP4.

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

KEY_EDITABLE_TRACKS_LENGTH

const val KEY_EDITABLE_TRACKS_LENGTH = "editable.tracks.length": String!

Key for editable tracks box (edvd) length.

KEY_EDITABLE_TRACKS_MAP

const val KEY_EDITABLE_TRACKS_MAP = "editable.tracks.map": String!

Key for editable tracks map.

KEY_EDITABLE_TRACKS_OFFSET

const val KEY_EDITABLE_TRACKS_OFFSET = "editable.tracks.offset": String!

Key for editable tracks box (edvd) offset.

KEY_EDITABLE_TRACKS_SAMPLES_LOCATION

const val KEY_EDITABLE_TRACKS_SAMPLES_LOCATION = "editable.tracks.samples.location": String!

Key for editable tracks samples location.

TYPE_INDICATOR_8_BIT_UNSIGNED_INT

const val TYPE_INDICATOR_8_BIT_UNSIGNED_INT = 75: Int

The type indicator for an 8-bit unsigned integer.

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_RESERVED

const val TYPE_INDICATOR_RESERVED = 0: Int

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

TYPE_INDICATOR_STRING

const val TYPE_INDICATOR_STRING = 1: Int

The type indicator for UTF-8 string.

TYPE_INDICATOR_UNSIGNED_INT64

const val TYPE_INDICATOR_UNSIGNED_INT64 = 78: Int

The type indicator for 64-bit unsigned integer.

Public constructors

MdtaMetadataEntry

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

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

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

getEditableTrackTypesFromMap

fun getEditableTrackTypesFromMap(): (Mutable)List<Int!>!

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

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.