> 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
class Mp4TrackReferenceData : 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 constructors |
|---|
| `Mp4TrackReferenceData( referenceType: Int, referencedTrackIds: (Mutable)List<Int!>! )` Creates an instance. |

| ### Public functions |
|---|---|
| `Boolean` | `equals(obj: Any?)` |
| `Int` | `hashCode()` |
| `String!` | `toString()` |

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

### Inherited functions

From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry.md.txt) `Array<Byte>?` `getWrappedMetadataBytes()`

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
`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.
`Unit` `populateMediaMetadata(builder: MediaMetadata.Builder!)`

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

## Public constructors

### Mp4TrackReferenceData

```
Mp4TrackReferenceData(
    referenceType: Int,
    referencedTrackIds: (Mutable)List<Int!>!
)
```

Creates an instance.

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

## Public functions

### equals

```
fun equals(obj: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String!
```

## Public properties

### referenceType

```
val referenceType: Int
```

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

### referencedTrackIds

```
val referencedTrackIds: ImmutableList<Int!>!
```

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