ExtractorOutput


@UnstableApi
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

const ExtractorOutput!

Placeholder ExtractorOutput implementation throwing an in each method.

Public functions

Unit

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

Unit
seekMap(seekMap: SeekMap!)

Called when a SeekMap has been extracted from the stream.

TrackOutput!
track(id: Int, @C.TrackType type: Int)

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

Constants

PLACEHOLDER

const val PLACEHOLDERExtractorOutput!

Placeholder ExtractorOutput implementation throwing an in each method.

Public functions

endTracks

fun endTracks(): Unit

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

seekMap

fun seekMap(seekMap: SeekMap!): Unit

Called when a SeekMap has been extracted from the stream.

Parameters
seekMap: SeekMap!

The extracted SeekMap.

track

fun track(id: Int, @C.TrackType type: Int): TrackOutput!

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
id: Int

A track identifier.

@C.TrackType type: Int

The track type.

Returns
TrackOutput!

The TrackOutput for the given track identifier.