Class BaseMediaChunk

    • Field Detail

      • clippedStartTimeUs

        public final long clippedStartTimeUs
        Deprecated.
        The time from which output will begin, or C.TIME_UNSET if output will begin from the start of the chunk.
      • clippedEndTimeUs

        public final long clippedEndTimeUs
        Deprecated.
        The time from which output will end, or C.TIME_UNSET if output will end at the end of the chunk.
    • Constructor Detail

      • BaseMediaChunk

        public BaseMediaChunk​(DataSource dataSource,
                              DataSpec dataSpec,
                              Format trackFormat,
                              @com.google.android.exoplayer2.C.SelectionReason int trackSelectionReason,
                              @Nullable
                              Object trackSelectionData,
                              long startTimeUs,
                              long endTimeUs,
                              long clippedStartTimeUs,
                              long clippedEndTimeUs,
                              long chunkIndex)
        Deprecated.
        Parameters:
        dataSource - The source from which the data should be loaded.
        dataSpec - Defines the data to be loaded.
        trackFormat - See Chunk.trackFormat.
        trackSelectionReason - See Chunk.trackSelectionReason.
        trackSelectionData - See Chunk.trackSelectionData.
        startTimeUs - The start time of the media contained by the chunk, in microseconds.
        endTimeUs - The end time of the media contained by the chunk, in microseconds.
        clippedStartTimeUs - The time in the chunk from which output will begin, or C.TIME_UNSET to output from the start of the chunk.
        clippedEndTimeUs - The time in the chunk from which output will end, or C.TIME_UNSET to output to the end of the chunk.
        chunkIndex - The index of the chunk, or C.INDEX_UNSET if it is not known.
    • Method Detail

      • init

        public void init​(BaseMediaChunkOutput output)
        Deprecated.
        Initializes the chunk for loading, setting the BaseMediaChunkOutput that will receive samples as they are loaded.
        Parameters:
        output - The output that will receive the loaded media samples.
      • getFirstSampleIndex

        public final int getFirstSampleIndex​(int trackIndex)
        Deprecated.
        Returns the index of the first sample in the specified track of the output that will originate from this chunk.