ExtractorOutput


@UnstableApi
public interface ExtractorOutput

Known direct subclasses
BundledChunkExtractor

ChunkExtractor implementation that uses ExoPlayer app-bundled Extractors.

DummyExtractorOutput

This class is deprecated.

Use NoOpExtractorOutput instead.

FakeExtractorOutput

A fake ExtractorOutput.

NoOpExtractorOutput

An ExtractorOutput implementation that does nothing.

StartOffsetExtractorOutput

An extractor output that wraps another extractor output and applies a give start byte offset to seek positions.

SubtitleTranscodingExtractorOutput

A wrapping ExtractorOutput that transcodes text samples from supported subtitle formats to APPLICATION_MEDIA3_CUES.


Receives stream level data extracted by an Extractor.

Summary

Constants

default static final ExtractorOutput

Placeholder ExtractorOutput implementation throwing an in each method.

Public methods

abstract void

Called when all tracks have been identified, meaning no new trackId values will be passed to track.

abstract void
seekMap(SeekMap seekMap)

Called when a SeekMap has been extracted from the stream.

abstract TrackOutput
track(int id, @C.TrackType int type)

Called by the Extractor to get the TrackOutput for a specific track.

Constants

PLACEHOLDER

default static final ExtractorOutput PLACEHOLDER

Placeholder ExtractorOutput implementation throwing an in each method.

Public methods

endTracks

abstract void endTracks()

Called when all tracks have been identified, meaning no new trackId values will be passed to track.

seekMap

abstract void seekMap(SeekMap seekMap)

Called when a SeekMap has been extracted from the stream.

Parameters
SeekMap seekMap

The extracted SeekMap.

track

abstract TrackOutput track(int id, @C.TrackType int type)

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.

Parameters
int id

A track identifier.

@C.TrackType int type

The track type.

Returns
TrackOutput

The TrackOutput for the given track identifier.