MotionPhotoMetadata


@UnstableApi
class MotionPhotoMetadata : MotionPhotoMetadata


Metadata of a motion photo file.

Summary

Public constructors

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

Creates an instance.

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.

From androidx.media3.extractor.metadata.mp4.MotionPhotoMetadata

Inherited properties

From androidx.media3.extractor.metadata.mp4.MotionPhotoMetadata
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.

Public constructors

MotionPhotoMetadata

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

Creates an instance.