Mp4OrientationData


@UnstableApi
public final class Mp4OrientationData implements Metadata.Entry


Stores the orientation hint for the video playback.

Summary

Public fields

final int

Public constructors

Mp4OrientationData(int orientation)

Creates an instance.

Public methods

boolean
int
String

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

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

@Nullable 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.

void

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

Public fields

orientation

public final int orientation

Public constructors

Mp4OrientationData

public Mp4OrientationData(int orientation)

Creates an instance.

Parameters
int orientation

The orientation, in degrees. The supported values are 0, 90, 180 and 270 (degrees).

Public methods

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

toString

public String toString()