Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.media3.exoplayer.source.chunk\n======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/exoplayer/source/chunk/package-summary \"View this page in Kotlin\") \\|Java\n\nInterfaces\n----------\n\n|----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor) | Extracts samples and track [Formats](/reference/androidx/media3/common/Format) from chunks. |\n| [ChunkExtractor.Factory](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor.Factory) | Creates [ChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor) instances. |\n| [ChunkExtractor.TrackOutputProvider](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor.TrackOutputProvider) | Provides [TrackOutput](/reference/androidx/media3/extractor/TrackOutput) instances to be written to during extraction. |\n| [ChunkSampleStream.ReleaseCallback](/reference/androidx/media3/exoplayer/source/chunk/ChunkSampleStream.ReleaseCallback) | A callback to be notified when a sample stream has finished being released. |\n| [ChunkSource](/reference/androidx/media3/exoplayer/source/chunk/ChunkSource) | A provider of [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk)s for a [ChunkSampleStream](/reference/androidx/media3/exoplayer/source/chunk/ChunkSampleStream) to load. |\n| [MediaChunkIterator](/reference/androidx/media3/exoplayer/source/chunk/MediaChunkIterator) | Iterator for media chunk sequences. |\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BaseMediaChunk](/reference/androidx/media3/exoplayer/source/chunk/BaseMediaChunk) | A base implementation of [MediaChunk](/reference/androidx/media3/exoplayer/source/chunk/MediaChunk) that outputs to a [BaseMediaChunkOutput](/reference/androidx/media3/exoplayer/source/chunk/BaseMediaChunkOutput). |\n| [BaseMediaChunkIterator](/reference/androidx/media3/exoplayer/source/chunk/BaseMediaChunkIterator) | Base class for [MediaChunkIterator](/reference/androidx/media3/exoplayer/source/chunk/MediaChunkIterator)s. |\n| [BaseMediaChunkOutput](/reference/androidx/media3/exoplayer/source/chunk/BaseMediaChunkOutput) | A [TrackOutputProvider](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor.TrackOutputProvider) that provides [TrackOutputs](/reference/androidx/media3/extractor/TrackOutput) based on a predefined mapping from track type to output. |\n| [BundledChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor) | [ChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor) implementation that uses ExoPlayer app-bundled [Extractors](/reference/androidx/media3/extractor/Extractor). |\n| [BundledChunkExtractor.Factory](/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor.Factory) | [ChunkExtractor.Factory](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor.Factory) for [BundledChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor). |\n| [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk) | An abstract base class for [Loadable](/reference/androidx/media3/exoplayer/upstream/Loader.Loadable) implementations that load chunks of data required for the playback of streams. |\n| [ChunkHolder](/reference/androidx/media3/exoplayer/source/chunk/ChunkHolder) | Holds a chunk or an indication that the end of the stream has been reached. |\n| [ChunkSampleStream](/reference/androidx/media3/exoplayer/source/chunk/ChunkSampleStream) | A [SampleStream](/reference/androidx/media3/exoplayer/source/SampleStream) that loads media in [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk)s, obtained from a [ChunkSource](/reference/androidx/media3/exoplayer/source/chunk/ChunkSource). |\n| [ChunkSampleStream.EmbeddedSampleStream](/reference/androidx/media3/exoplayer/source/chunk/ChunkSampleStream.EmbeddedSampleStream) | A [SampleStream](/reference/androidx/media3/exoplayer/source/SampleStream) embedded in a [ChunkSampleStream](/reference/androidx/media3/exoplayer/source/chunk/ChunkSampleStream). |\n| [ContainerMediaChunk](/reference/androidx/media3/exoplayer/source/chunk/ContainerMediaChunk) | A [BaseMediaChunk](/reference/androidx/media3/exoplayer/source/chunk/BaseMediaChunk) that uses an [Extractor](/reference/androidx/media3/extractor/Extractor) to decode sample data. |\n| [DataChunk](/reference/androidx/media3/exoplayer/source/chunk/DataChunk) | A base class for [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk) implementations where the data should be loaded into a ` byte[]` before being consumed. |\n| [InitializationChunk](/reference/androidx/media3/exoplayer/source/chunk/InitializationChunk) | A [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk) that uses an [Extractor](/reference/androidx/media3/extractor/Extractor) to decode initialization data for single track. |\n| [MediaChunk](/reference/androidx/media3/exoplayer/source/chunk/MediaChunk) | An abstract base class for [Chunk](/reference/androidx/media3/exoplayer/source/chunk/Chunk)s that contain media samples. |\n| [MediaParserChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/MediaParserChunkExtractor) | [ChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor) implemented on top of the platform's [MediaParser](https://developer.android.com/reference/android/media/MediaParser.html). |\n| [MediaParserChunkExtractor.Factory](/reference/androidx/media3/exoplayer/source/chunk/MediaParserChunkExtractor.Factory) | A [ChunkExtractor.Factory](/reference/androidx/media3/exoplayer/source/chunk/ChunkExtractor.Factory) for [MediaParserChunkExtractor](/reference/androidx/media3/exoplayer/source/chunk/MediaParserChunkExtractor) instances. |\n| [SingleSampleMediaChunk](/reference/androidx/media3/exoplayer/source/chunk/SingleSampleMediaChunk) | **This class is deprecated.** The only use for this class is subtitle playback, but it is only compatible with legacy subtitle decoding, which is not supported by default. \u003cbr /\u003e |"]]