androidx.media3.extractor.text


Interfaces

Subtitle

A subtitle consisting of timed Cues.

SubtitleDecoder

Decodes Subtitles from SubtitleInputBuffers.

SubtitleParser

Parses subtitle data into timed CuesWithTiming instances.

SubtitleParser.Factory

Factory for SubtitleParser instances.

Classes

CueDecoder

Decodes data encoded by CueEncoder.

CueEncoder

Encodes data that can be decoded by CueDecoder.

CuesWithTiming

A list of Cue instances with a start time and duration.

CuesWithTimingSubtitle

A Subtitle backed by a list of CuesWithTiming instances.

DefaultSubtitleParserFactory

A factory for SubtitleParser instances.

LegacySubtitleUtil

Utility methods for working with legacy Subtitle objects.

SimpleSubtitleDecoder

Base class for subtitle parsers that use their own decode thread.

SubtitleExtractor

Generic extractor for extracting subtitles from various subtitle formats.

SubtitleInputBuffer

A DecoderInputBuffer for a SubtitleDecoder.

SubtitleOutputBuffer

Base class for SubtitleDecoder output buffers.

SubtitleParser.OutputOptions

Options to control the output behavior of SubtitleParser methods that emit their output incrementally using a Consumer provided by the caller.

SubtitleTranscodingExtractor

This class is deprecated.

Use SubtitleTranscodingExtractorOutput directly from within an existing Extractor implementation instead.

SubtitleTranscodingExtractorOutput

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

Exceptions

SubtitleDecoderException

Thrown when an error occurs decoding subtitle data.