UpdatedDefaultExtractorsFactory
An ExtractorsFactory that provides an array of extractors for the following formats:
MP4, including M4A (Mp4Extractor)
fMP4 (FragmentedMp4Extractor)
Matroska and WebM (UpdatedMatroskaExtractor)
Ogg Vorbis/FLAC (OggExtractor
MP3 (Mp3Extractor)
AAC (AdtsExtractor)
MPEG TS (TsExtractor)
MPEG PS (PsExtractor)
FLV (FlvExtractor)
WAV (WavExtractor)
AC3 (Ac3Extractor)
AC4 (Ac4Extractor)
AMR (AmrExtractor)
FLAC
If available, the FLAC extension's
androidx.media3.decoder.flac.FlacExtractor
is used.Otherwise, the core FlacExtractor is used. Note that Android devices do not generally include a FLAC decoder before API 27. This can be worked around by using the FLAC extension or the FFmpeg extension.
JPEG (JpegExtractor)
PNG (PngExtractor)
WEBP (WebpExtractor)
BMP (BmpExtractor)
HEIF (HeifExtractor)
AVIF (AvifExtractor)
MIDI, if available, the MIDI extension's
androidx.media3.decoder.midi.MidiExtractor
is used.
Functions
Sets flags for AdtsExtractor instances created by the factory.
Sets flags for AmrExtractor instances created by the factory.
Convenience method to set whether approximate seeking using constant bitrate assumptions should be enabled for all extractors that support it, and if it should be enabled even if the content length (and hence the duration of the media) is unknown. If set to true, the flags required to enable this functionality will be OR'd with those passed to the setters when creating extractor instances. If set to false then the flags passed to the setters will be used without modification.
Convenience method to set whether approximate seeking using constant bitrate assumptions should be enabled for all extractors that support it. If set to true, the flags required to enable this functionality will be OR'd with those passed to the setters when creating extractor instances. If set to false then the flags passed to the setters will be used without modification.
Sets flags for FlacExtractor instances created by the factory. The flags are also used by androidx.media3.decoder.flac.FlacExtractor
instances if the FLAC extension is being used.
Sets flags for FragmentedMp4Extractor instances created by the factory.
Sets flags for JpegExtractor instances created by the factory.
Sets flags for UpdatedMatroskaExtractor instances created by the factory.
Sets flags for Mp3Extractor instances created by the factory.
Sets flags for Mp4Extractor instances created by the factory.
Sets flags for DefaultTsPayloadReaderFactorys used by TsExtractor instances created by the factory.
Sets the mode for TsExtractor instances created by the factory.
Sets the number of bytes searched to find a timestamp for TsExtractor instances created by the factory.
Sets a list of subtitle formats to pass to the DefaultTsPayloadReaderFactory used by TsExtractor instances created by the factory.