Mp4LocationData


@UnstableApi
class Mp4LocationData : Metadata.Entry


Stores MP4 location data.

The location data is typically read/written in the "udta" box (user data box, defined in ISO/IEC 14496-12).

Summary

Public constructors

Mp4LocationData(
    latitude: @FloatRange(from = "-90.0", to = 90.0) Float,
    longitude: @FloatRange(from = "-180.0", to = 180.0) Float
)

Creates an instance.

Public functions

Boolean
equals(obj: Any?)
Int
String!

Public properties

Float

The latitude, in degrees.

Float

The longitude, in degrees.

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.

Public constructors

Mp4LocationData

Mp4LocationData(
    latitude: @FloatRange(from = "-90.0", to = 90.0) Float,
    longitude: @FloatRange(from = "-180.0", to = 180.0) Float
)

Creates an instance.

Parameters
latitude: @FloatRange(from = "-90.0", to = 90.0) Float

The latitude, in degrees. Its value must be in the range [-90, 90].

longitude: @FloatRange(from = "-180.0", to = 180.0) Float

The longitude, in degrees. Its value must be in the range [-180, 180].

Public functions

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

latitude

val latitudeFloat

The latitude, in degrees.

longitude

val longitudeFloat

The longitude, in degrees.