Class Chunk

    • Field Detail

      • loadTaskId

        public final long loadTaskId
        Identifies the load task for this loadable.
      • dataSpec

        public final DataSpec dataSpec
        The DataSpec that defines the data to be loaded.
      • type

        public final int type
        The type of the chunk. One of the DATA_TYPE_* constants defined in C. For reporting only.
      • trackFormat

        public final Format trackFormat
        The format of the track to which this chunk belongs.
      • trackSelectionReason

        public final int trackSelectionReason
        One of the C SELECTION_REASON_* constants if the chunk belongs to a track. C.SELECTION_REASON_UNKNOWN if the chunk does not belong to a track, or if the selection reason is unknown.
      • trackSelectionData

        @Nullable
        public final Object trackSelectionData
        Optional data associated with the selection of the track to which this chunk belongs. Null if the chunk does not belong to a track, or if there is no associated track selection data.
      • startTimeUs

        public final long startTimeUs
        The start time of the media contained by the chunk, or C.TIME_UNSET if the data being loaded does not contain media samples.
      • endTimeUs

        public final long endTimeUs
        The end time of the media contained by the chunk, or C.TIME_UNSET if the data being loaded does not contain media samples.
    • Constructor Detail

      • Chunk

        public Chunk​(DataSource dataSource,
                     DataSpec dataSpec,
                     int type,
                     Format trackFormat,
                     int trackSelectionReason,
                     @Nullable
                     Object trackSelectionData,
                     long startTimeUs,
                     long endTimeUs)
        Parameters:
        dataSource - The source from which the data should be loaded.
        dataSpec - Defines the data to be loaded.
        type - See type.
        trackFormat - See trackFormat.
        trackSelectionReason - See trackSelectionReason.
        trackSelectionData - See trackSelectionData.
        startTimeUs - See startTimeUs.
        endTimeUs - See endTimeUs.