Class ContainerMediaChunk

    • Constructor Detail

      • ContainerMediaChunk

        public ContainerMediaChunk​(DataSource dataSource,
                                   DataSpec dataSpec,
                                   Format trackFormat,
                                   int trackSelectionReason,
                                   @Nullable
                                   Object trackSelectionData,
                                   long startTimeUs,
                                   long endTimeUs,
                                   long clippedStartTimeUs,
                                   long clippedEndTimeUs,
                                   long chunkIndex,
                                   int chunkCount,
                                   long sampleOffsetUs,
                                   ChunkExtractor chunkExtractor)
        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.
        chunkCount - The number of chunks in the underlying media that are spanned by this instance. Normally equal to one, but may be larger if multiple chunks as defined by the underlying media are being merged into a single load.
        sampleOffsetUs - An offset to add to the sample timestamps parsed by the extractor.
        chunkExtractor - A wrapped extractor to use for parsing the data.