public final class InitializationChunk extends Chunk
dataSource, dataSpec, endTimeUs, startTimeUs, trackFormat, trackSelectionData, trackSelectionReason, type| Constructor and Description |
|---|
InitializationChunk(DataSource dataSource,
DataSpec dataSpec,
Format trackFormat,
int trackSelectionReason,
java.lang.Object trackSelectionData,
ChunkExtractorWrapper extractorWrapper) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesLoaded()
Returns the number of bytes that have been loaded.
|
void |
cancelLoad()
Cancels the load.
|
void |
load()
Performs the load, returning on completion or cancellation.
|
getDurationUspublic InitializationChunk(DataSource dataSource, DataSpec dataSpec, Format trackFormat, int trackSelectionReason, @Nullable java.lang.Object trackSelectionData, ChunkExtractorWrapper extractorWrapper)
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.extractorWrapper - A wrapped extractor to use for parsing the initialization data.public long bytesLoaded()
ChunkbytesLoaded in class Chunkpublic void cancelLoad()
Loader.Loadablepublic void load()
throws java.io.IOException,
java.lang.InterruptedException
Loader.Loadablejava.io.IOException - If the input could not be loaded.java.lang.InterruptedException - If the thread was interrupted.