Class StartOffsetExtractorOutput
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.jpeg.StartOffsetExtractorOutput
-
- All Implemented Interfaces:
ExtractorOutput
@Deprecated public final class StartOffsetExtractorOutput extends Object implements ExtractorOutput
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.An extractor output that wraps another extractor output and applies a give start byte offset to seek positions.This is useful for extracting from a container that's concatenated after some prefix data but where the container's extractor doesn't handle a non-zero start offset (for example, because it seeks to absolute positions read from the container data).
-
-
Field Summary
-
Fields inherited from interface com.google.android.exoplayer2.extractor.ExtractorOutput
PLACEHOLDER
-
-
Constructor Summary
Constructors Constructor Description StartOffsetExtractorOutput(long startOffset, ExtractorOutput extractorOutput)
Deprecated.Creates a new wrapper reading from the given start byte offset.
-
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)
.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.
-
-
-
Constructor Detail
-
StartOffsetExtractorOutput
public StartOffsetExtractorOutput(long startOffset, ExtractorOutput extractorOutput)
Deprecated.Creates a new wrapper reading from the given start byte offset.
-
-
Method Detail
-
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
.
-
-