Back to Exoplayer

StartOffsetExtractorOutput (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/extractor/jpeg/StartOffsetExtractorOutput.html

latest5.3 KB
Original Source

Package com.google.android.exoplayer2.extractor.jpeg

Class StartOffsetExtractorOutput

  • java.lang.Object

    • com.google.android.exoplayer2.extractor.jpeg.StartOffsetExtractorOutput
  • All Implemented Interfaces:ExtractorOutput


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classStartOffsetExtractorOutputextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ExtractorOutput](../ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor")

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 new trackId values will be passed to ExtractorOutput.track(int, int). | | 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

Constructor Detail

- 

StartOffsetExtractorOutput

public StartOffsetExtractorOutput​(long startOffset,[ExtractorOutput](../ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor")extractorOutput)

Deprecated.

Creates a new wrapper reading from the given start byte offset.

Method Detail

- 

track

public[TrackOutput](../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](../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.