MotionPhotoMetadata


@UnstableApi
class MotionPhotoMetadata : Metadata.Entry


Metadata of a motion photo file.

Summary

Public constructors

MotionPhotoMetadata(
    photoStartPosition: Long,
    photoSize: Long,
    photoPresentationTimestampUs: Long,
    videoStartPosition: Long,
    videoSize: Long
)

Creates an instance.

Public functions

Boolean
equals(obj: Any?)
Int
String!

Public properties

Long

The presentation timestamp of the photo, in microseconds, or TIME_UNSET if unknown.

Long

The size of the photo data, in bytes.

Long

The start offset of the photo data, in bytes.

Long

The size of the video data, in bytes.

Long

The start offset of the video data, in bytes.

Inherited functions

From androidx.media3.common.Metadata.Entry
Array<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

MotionPhotoMetadata

MotionPhotoMetadata(
    photoStartPosition: Long,
    photoSize: Long,
    photoPresentationTimestampUs: Long,
    videoStartPosition: Long,
    videoSize: Long
)

Creates an instance.

Public functions

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

photoPresentationTimestampUs

val photoPresentationTimestampUs: Long

The presentation timestamp of the photo, in microseconds, or TIME_UNSET if unknown.

photoSize

val photoSize: Long

The size of the photo data, in bytes.

photoStartPosition

val photoStartPosition: Long

The start offset of the photo data, in bytes.

videoSize

val videoSize: Long

The size of the video data, in bytes.

videoStartPosition

val videoStartPosition: Long

The start offset of the video data, in bytes.