# Mp4OrientationData

Artifact: [androidx.media3:media3-container](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/container/Mp4OrientationData.java+class:androidx.media3.container.Mp4OrientationData)

*** ** * ** ***


```
@UnstableApi
public final class Mp4OrientationData implements Metadata.Entry
```

<br />

*** ** * ** ***

Stores the orientation hint for the video playback.

The orientation hint is typically read/written in the "tkhd" box (track header box, defined in ISO/IEC 14496-12).

## Summary

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/media3/container/Mp4OrientationData#orientation()` The orientation, in degrees. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/container/Mp4OrientationData#Mp4OrientationData(int)(int orientation)` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/container/Mp4OrientationData#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html obj)` |
| `int` | `https://developer.android.com/reference/androidx/media3/container/Mp4OrientationData#hashCode()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/container/Mp4OrientationData#toString()()` |

| ### Inherited methods |
|---|
| From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/androidx/media3/common/Metadata.Entry) |---|---| | `@https://developer.android.com/reference/androidx/annotation/Nullable byte[]` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()()` Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata. | | `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()` Returns the `https://developer.android.com/reference/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata. | | `void` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder builder)` Updates the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`. | |

## Public fields

### orientation

```
public final int orientation
```

The orientation, in degrees.

## 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()
```