> Documentation index: https://developer.android.com/reference/llms.txt

# Mp4TrackReferenceData

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

*** ** * ** ***


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

<br />

*** ** * ** ***

Stores MP4 track reference information parsed from a `TrackReferenceTypeBox` inside a `tref` box (ISO/IEC 14496-12 section 8.3.3).

## Summary

| ### Public fields |
|---|---|
| `final int` | `referenceType` The fourcc integer representing the track reference type (for example, `TYPE_rndr`). |
| `final ImmutableList<Integer>` | `referencedTrackIds` The non-empty list of `track_ID` values from the `tkhd` boxes of the referenced tracks. |

| ### Public constructors |
|---|
| `Mp4TrackReferenceData( int referenceType, List<Integer> referencedTrackIds )` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `equals(@Nullable Object obj)` |
| `int` | `hashCode()` |
| `String` | `toString()` |

### Inherited methods

From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/androidx/media3/common/Metadata.Entry.md.txt) `@Nullable byte[]` `getWrappedMetadataBytes()`

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
`@Nullable Format` `getWrappedMetadataFormat()`

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` `populateMediaMetadata(MediaMetadata.Builder builder)`

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

## Public fields

### referenceType

```
public final int referenceType
```

The fourcc integer representing the track reference type (for example, `TYPE_rndr`).

### referencedTrackIds

```
public final ImmutableList<Integer> referencedTrackIds
```

The non-empty list of `track_ID` values from the `tkhd` boxes of the referenced tracks.

## Public constructors

### Mp4TrackReferenceData

```
public Mp4TrackReferenceData(
    int referenceType,
    List<Integer> referencedTrackIds
)
```

Creates an instance.

| Parameters |
|---|---|
| `int referenceType` | The fourcc integer representing the track reference type (for example, `TYPE_rndr`). |
| `List<Integer> referencedTrackIds` | The non-empty list of `track_ID` values from the `tkhd` boxes of the referenced tracks. |

## Public methods

### equals

```
public boolean equals(@Nullable Object obj)
```

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```