Mp4TrackReferenceData


@UnstableApi
public final class Mp4TrackReferenceData implements 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 fields

final int

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

final ImmutableList<Integer>

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

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.

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