Mp4OrientationData


@UnstableApi
public final class Mp4OrientationData implements Metadata.Entry


Stores the orientation hint for the video playback.

Summary

Constants

static final Parcelable.Creator<Mp4OrientationData>

Public fields

final int

Public constructors

Mp4OrientationData(int orientation)

Creates an instance.

Public methods

int
boolean
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

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.

Constants

CREATOR

public static final Parcelable.Creator<Mp4OrientationDataCREATOR

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

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)