Mp4TrackReferenceData


@UnstableApi
class Mp4TrackReferenceData : Metadata.Entry


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
String!

Public properties

Int

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

ImmutableList<Int!>!

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

Inherited functions

From androidx.media3.common.Metadata.Entry
Array<Byte>?

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

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.

Unit

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.