UpdatedDefaultExtractorsFactory

@UnstableApi
class UpdatedDefaultExtractorsFactory : ExtractorsFactory(source)

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.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun createExtractors(): Array<Extractor>
open override fun createExtractors(uri: Uri, responseHeaders: Map<String, List<String>>): Array<Extractor>
open override fun experimentalSetCodecsToParseWithinGopSampleDependencies(codecsToParseWithinGopSampleDependencies: @C.VideoCodecFlags Int): UpdatedDefaultExtractorsFactory
Link copied to clipboard

Sets flags for AdtsExtractor instances created by the factory.

Link copied to clipboard

Sets flags for AmrExtractor instances created by the factory.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Sets flags for FragmentedMp4Extractor instances created by the factory.

Link copied to clipboard

Sets flags for HeifExtractor instances created by the factory.

Link copied to clipboard

Sets flags for JpegExtractor instances created by the factory.

Link copied to clipboard

Sets flags for Mp3Extractor instances created by the factory.

Link copied to clipboard

Sets flags for Mp4Extractor instances created by the factory.

Link copied to clipboard
open override fun setSubtitleParserFactory(subtitleParserFactory: SubtitleParser.Factory): UpdatedDefaultExtractorsFactory
Link copied to clipboard
fun setTsExtractorFlags(flags: @DefaultTsPayloadReaderFactory.Flags Int): UpdatedDefaultExtractorsFactory

Sets flags for DefaultTsPayloadReaderFactorys used by TsExtractor instances created by the factory.

Link copied to clipboard

Sets the mode for TsExtractor instances created by the factory.

Link copied to clipboard

Sets the number of bytes searched to find a timestamp for TsExtractor instances created by the factory.

Link copied to clipboard

Sets a list of subtitle formats to pass to the DefaultTsPayloadReaderFactory used by TsExtractor instances created by the factory.