docs/doc/reference/com/google/android/exoplayer2/source/chunk/BundledChunkExtractor.html
Package com.google.android.exoplayer2.source.chunk
All Implemented Interfaces:ExtractorOutput, ChunkExtractor
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classBundledChunkExtractorextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ExtractorOutput](../../extractor/ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor"),[ChunkExtractor](ChunkExtractor.html "interface in com.google.android.exoplayer2.source.chunk")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
ChunkExtractor implementation that uses ExoPlayer app-bundled Extractors.
-
ChunkExtractor.Factory, ChunkExtractor.TrackOutputProvider
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static ChunkExtractor.Factory | FACTORY |
Deprecated.
ChunkExtractor.Factory for instances of this class.
|
-
PLACEHOLDER
Constructors | Constructor | Description |
| --- | --- |
| BundledChunkExtractor(Extractor extractor, @com.google.android.exoplayer2.C.TrackType int primaryTrackType, Format primaryTrackManifestFormat) |
Deprecated.
Creates an instance. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | endTracks() |
Deprecated.
Called when all tracks have been identified, meaning no new trackId values will be passed to ExtractorOutput.track(int, int).
|
| ChunkIndex | getChunkIndex() |
Deprecated.
Returns the ChunkIndex most recently obtained from the chunks, or null if a ChunkIndex has not been obtained.
|
| Format[] | getSampleFormats() |
Deprecated.
Returns the sample Formats for the tracks identified by the extractor, or null if the extractor has not finished identifying tracks.
|
| void | init(ChunkExtractor.TrackOutputProvider trackOutputProvider, long startTimeUs, long endTimeUs) |
Deprecated.
Initializes the wrapper to output to TrackOutputs provided by the specified ChunkExtractor.TrackOutputProvider, and configures the extractor to receive data from a new chunk.
|
| boolean | read(ExtractorInput input) |
Deprecated.
Reads from the given ExtractorInput.
|
| void | release() |
Deprecated.
Releases any held resources.
|
| void | seekMap(SeekMap seekMap) |
Deprecated.
Called when a SeekMap has been extracted from the stream.
|
| TrackOutput | track(int id, int type) |
Deprecated.
Called by the Extractor to get the TrackOutput for a specific track.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[ChunkExtractor.Factory](ChunkExtractor.Factory.html "interface in com.google.android.exoplayer2.source.chunk")FACTORY
Deprecated.
ChunkExtractor.Factory for instances of this class.
-
public BundledChunkExtractor([Extractor](../../extractor/Extractor.html "interface in com.google.android.exoplayer2.extractor")extractor,
@com.google.android.exoplayer2.C.TrackType int primaryTrackType,[Format](../../Format.html "class in com.google.android.exoplayer2")primaryTrackManifestFormat)
Deprecated.
Creates an instance.
Parameters:extractor - The extractor to wrap.primaryTrackType - The type of the primary track.primaryTrackManifestFormat - A manifest defined Format whose data should be merged into any sample Format output from the Extractor for the primary track.
-
@Nullable
public[ChunkIndex](../../extractor/ChunkIndex.html "class in com.google.android.exoplayer2.extractor")getChunkIndex()
Deprecated.
Description copied from interface: ChunkExtractor
Returns the ChunkIndex most recently obtained from the chunks, or null if a ChunkIndex has not been obtained.
Specified by:getChunkIndex in interface ChunkExtractor
-
@Nullable
public[Format](../../Format.html "class in com.google.android.exoplayer2")[] getSampleFormats()
Deprecated.
Description copied from interface: ChunkExtractor
Returns the sample Formats for the tracks identified by the extractor, or null if the extractor has not finished identifying tracks.
Specified by:getSampleFormats in interface ChunkExtractor
-
public void init(@Nullable[ChunkExtractor.TrackOutputProvider](ChunkExtractor.TrackOutputProvider.html "interface in com.google.android.exoplayer2.source.chunk")trackOutputProvider,
long startTimeUs,
long endTimeUs)
Deprecated.
Description copied from interface: ChunkExtractor
Initializes the wrapper to output to TrackOutputs provided by the specified ChunkExtractor.TrackOutputProvider, and configures the extractor to receive data from a new chunk.
Specified by:init in interface ChunkExtractorParameters:trackOutputProvider - The provider of TrackOutputs that will receive sample data.startTimeUs - The start position in the new chunk, or C.TIME_UNSET to output samples from the start of the chunk.endTimeUs - The end position in the new chunk, or C.TIME_UNSET to output samples to the end of the chunk.
-
public void release()
Deprecated.
Description copied from interface: ChunkExtractor
Releases any held resources.
Specified by:release in interface ChunkExtractor
-
public boolean read([ExtractorInput](../../extractor/ExtractorInput.html "interface in com.google.android.exoplayer2.extractor")input)
throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
Deprecated.
Description copied from interface: ChunkExtractor
Reads from the given ExtractorInput.
Specified by:read in interface ChunkExtractorParameters:input - The input to read from.Returns:Whether there is any data left to extract. Returns false if the end of input has been reached.Throws:IOException - If an error occurred reading from or parsing the input.
-
public[TrackOutput](../../extractor/TrackOutput.html "interface in com.google.android.exoplayer2.extractor")track(int id,
int type)
Deprecated.
Description copied from interface: ExtractorOutput
Called by the Extractor to get the TrackOutput for a specific track.
The same TrackOutput is returned if multiple calls are made with the same id.
Specified by:track in interface ExtractorOutputParameters:id - A track identifier.type - The track type.Returns:The TrackOutput for the given track identifier.
-
public void endTracks()
Deprecated.
Description copied from interface: ExtractorOutput
Called when all tracks have been identified, meaning no new trackId values will be passed to ExtractorOutput.track(int, int).
Specified by:endTracks in interface ExtractorOutput
-
public void seekMap([SeekMap](../../extractor/SeekMap.html "interface in com.google.android.exoplayer2.extractor")seekMap)
Deprecated.
Description copied from interface: ExtractorOutput
Called when a SeekMap has been extracted from the stream.
Specified by:seekMap in interface ExtractorOutputParameters:seekMap - The extracted SeekMap.