Back to Exoplayer

BundledChunkExtractor (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/chunk/BundledChunkExtractor.html

latest11.5 KB
Original Source

Package com.google.android.exoplayer2.source.chunk

Class BundledChunkExtractor

  • java.lang.Object

    • com.google.android.exoplayer2.source.chunk.BundledChunkExtractor
  • 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.

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 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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

FACTORY

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.

Constructor Detail

- 

BundledChunkExtractor

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.

Method Detail

- 

getChunkIndex

@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

- 

getSampleFormats

@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

- 

init

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.

- 

release

public void release()

Deprecated.

Description copied from interface: ChunkExtractor

Releases any held resources. Specified by:release in interface ChunkExtractor

- 

read

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.

- 

track

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.

- 

endTracks

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

- 

seekMap

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.