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 voidendTracks()Deprecated.Called when all tracks have been identified, meaning no newtrackIdvalues will be passed toExtractorOutput.track(int, int).voidseekMap(SeekMap seekMap)Deprecated.Called when aSeekMaphas been extracted from the stream.TrackOutputtrack(int id, int type)Deprecated.Called by theExtractorto get theTrackOutputfor 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:ExtractorOutputCalled by theExtractorto get theTrackOutputfor a specific track.The same
TrackOutputis returned if multiple calls are made with the sameid.- Specified by:
trackin interfaceExtractorOutput- Parameters:
id- A track identifier.type- Thetrack type.- Returns:
- The
TrackOutputfor the given track identifier.
-
endTracks
public void endTracks()
Deprecated.Description copied from interface:ExtractorOutputCalled when all tracks have been identified, meaning no newtrackIdvalues will be passed toExtractorOutput.track(int, int).- Specified by:
endTracksin interfaceExtractorOutput
-
seekMap
public void seekMap(SeekMap seekMap)
Deprecated.Description copied from interface:ExtractorOutputCalled when aSeekMaphas been extracted from the stream.- Specified by:
seekMapin interfaceExtractorOutput- Parameters:
seekMap- The extractedSeekMap.
-
-