Class BundledChunkExtractor
- java.lang.Object
-
- com.google.android.exoplayer2.source.chunk.BundledChunkExtractor
-
- All Implemented Interfaces:
ExtractorOutput
,ChunkExtractor
@Deprecated public final class BundledChunkExtractor extends Object implements ExtractorOutput, ChunkExtractor
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-bundledExtractors
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.source.chunk.ChunkExtractor
ChunkExtractor.Factory, ChunkExtractor.TrackOutputProvider
-
-
Field Summary
Fields Modifier and Type Field Description static ChunkExtractor.Factory
FACTORY
Deprecated.ChunkExtractor.Factory
for instances of this class.-
Fields inherited from interface com.google.android.exoplayer2.extractor.ExtractorOutput
PLACEHOLDER
-
-
Constructor Summary
Constructors Constructor Description BundledChunkExtractor(Extractor extractor, @com.google.android.exoplayer2.C.TrackType int primaryTrackType, Format primaryTrackManifestFormat)
Deprecated.Creates an instance.
-
Method Summary
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 newtrackId
values will be passed toExtractorOutput.track(int, int)
.ChunkIndex
getChunkIndex()
Deprecated.Returns theChunkIndex
most recently obtained from the chunks, or null if aChunkIndex
has not been obtained.Format[]
getSampleFormats()
Deprecated.Returns the sampleFormat
s 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 toTrackOutput
s provided by the specifiedChunkExtractor.TrackOutputProvider
, and configures the extractor to receive data from a new chunk.boolean
read(ExtractorInput input)
Deprecated.Reads from the givenExtractorInput
.void
release()
Deprecated.Releases any held resources.void
seekMap(SeekMap seekMap)
Deprecated.Called when aSeekMap
has been extracted from the stream.TrackOutput
track(int id, int type)
Deprecated.Called by theExtractor
to get theTrackOutput
for a specific track.
-
-
-
Field Detail
-
FACTORY
public static final ChunkExtractor.Factory FACTORY
Deprecated.ChunkExtractor.Factory
for instances of this class.
-
-
Method Detail
-
getChunkIndex
@Nullable public ChunkIndex getChunkIndex()
Deprecated.Description copied from interface:ChunkExtractor
Returns theChunkIndex
most recently obtained from the chunks, or null if aChunkIndex
has not been obtained.- Specified by:
getChunkIndex
in interfaceChunkExtractor
-
getSampleFormats
@Nullable public Format[] getSampleFormats()
Deprecated.Description copied from interface:ChunkExtractor
Returns the sampleFormat
s for the tracks identified by the extractor, or null if the extractor has not finished identifying tracks.- Specified by:
getSampleFormats
in interfaceChunkExtractor
-
init
public void init(@Nullable ChunkExtractor.TrackOutputProvider trackOutputProvider, long startTimeUs, long endTimeUs)
Deprecated.Description copied from interface:ChunkExtractor
Initializes the wrapper to output toTrackOutput
s provided by the specifiedChunkExtractor.TrackOutputProvider
, and configures the extractor to receive data from a new chunk.- Specified by:
init
in interfaceChunkExtractor
- Parameters:
trackOutputProvider
- The provider ofTrackOutput
s that will receive sample data.startTimeUs
- The start position in the new chunk, orC.TIME_UNSET
to output samples from the start of the chunk.endTimeUs
- The end position in the new chunk, orC.TIME_UNSET
to output samples to the end of the chunk.
-
release
public void release()
Deprecated.Description copied from interface:ChunkExtractor
Releases any held resources.- Specified by:
release
in interfaceChunkExtractor
-
read
public boolean read(ExtractorInput input) throws IOException
Deprecated.Description copied from interface:ChunkExtractor
Reads from the givenExtractorInput
.- Specified by:
read
in interfaceChunkExtractor
- Parameters:
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.
-
track
public TrackOutput track(int id, int type)
Deprecated.Description copied from interface:ExtractorOutput
Called by theExtractor
to get theTrackOutput
for a specific track.The same
TrackOutput
is returned if multiple calls are made with the sameid
.- Specified by:
track
in interfaceExtractorOutput
- Parameters:
id
- A track identifier.type
- Thetrack type
.- Returns:
- The
TrackOutput
for the given track identifier.
-
endTracks
public void endTracks()
Deprecated.Description copied from interface:ExtractorOutput
Called when all tracks have been identified, meaning no newtrackId
values will be passed toExtractorOutput.track(int, int)
.- Specified by:
endTracks
in interfaceExtractorOutput
-
seekMap
public void seekMap(SeekMap seekMap)
Deprecated.Description copied from interface:ExtractorOutput
Called when aSeekMap
has been extracted from the stream.- Specified by:
seekMap
in interfaceExtractorOutput
- Parameters:
seekMap
- The extractedSeekMap
.
-
-