Back to Exoplayer

DefaultHlsExtractorFactory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactory.html

latest7.4 KB
Original Source

Package com.google.android.exoplayer2.source.hls

Class DefaultHlsExtractorFactory

  • java.lang.Object

    • com.google.android.exoplayer2.source.hls.DefaultHlsExtractorFactory
  • All Implemented Interfaces:HlsExtractorFactory


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultHlsExtractorFactoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[HlsExtractorFactory](HlsExtractorFactory.html "interface in com.google.android.exoplayer2.source.hls")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Default HlsExtractorFactory implementation.

Field Summary

- 

Fields inherited from interface com.google.android.exoplayer2.source.hls.HlsExtractorFactory

DEFAULT

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DefaultHlsExtractorFactory() | Deprecated.

Equivalent to new DefaultHlsExtractorFactory(payloadReaderFactoryFlags = 0, exposeCea608WhenMissingDeclarations = true) | | DefaultHlsExtractorFactory​(int payloadReaderFactoryFlags, boolean exposeCea608WhenMissingDeclarations) | Deprecated.

Creates a factory for HLS segment extractors. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | BundledHlsMediaChunkExtractor | createExtractor​(Uri uri, Format format, List<Format> muxedCaptionFormats, TimestampAdjuster timestampAdjuster, Map<String,​List<String>> responseHeaders, ExtractorInput sniffingExtractorInput, PlayerId playerId) | Deprecated.

Creates an Extractor for extracting HLS media chunks. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

DefaultHlsExtractorFactory

public DefaultHlsExtractorFactory()

Deprecated.

Equivalent to new DefaultHlsExtractorFactory(payloadReaderFactoryFlags = 0, exposeCea608WhenMissingDeclarations = true)

- 

DefaultHlsExtractorFactory

public DefaultHlsExtractorFactory​(int payloadReaderFactoryFlags,
                                  boolean exposeCea608WhenMissingDeclarations)

Deprecated.

Creates a factory for HLS segment extractors. Parameters:payloadReaderFactoryFlags - Flags to add when constructing any DefaultTsPayloadReaderFactory instances. Other flags may be added on top of payloadReaderFactoryFlags when creating DefaultTsPayloadReaderFactory.exposeCea608WhenMissingDeclarations - Whether created TsExtractor instances should expose a CEA-608 track should the multivariant playlist contain no Closed Captions declarations. If the multivariant playlist contains any Closed Captions declarations, this flag is ignored.

Method Detail

- 

createExtractor

public[BundledHlsMediaChunkExtractor](BundledHlsMediaChunkExtractor.html "class in com.google.android.exoplayer2.source.hls")createExtractor​([Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri,[Format](../../Format.html "class in com.google.android.exoplayer2")format,
                                                     @Nullable[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Format](../../Format.html "class in com.google.android.exoplayer2")> muxedCaptionFormats,[TimestampAdjuster](../../util/TimestampAdjuster.html "class in com.google.android.exoplayer2.util")timestampAdjuster,[Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),​[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders,[ExtractorInput](../../extractor/ExtractorInput.html "interface in com.google.android.exoplayer2.extractor")sniffingExtractorInput,[PlayerId](../../analytics/PlayerId.html "class in com.google.android.exoplayer2.analytics")playerId)
                                              throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Deprecated.

Description copied from interface: HlsExtractorFactory

Creates an Extractor for extracting HLS media chunks. Specified by:createExtractor in interface HlsExtractorFactoryParameters:uri - The URI of the media chunk.format - A Format associated with the chunk to extract.muxedCaptionFormats - List of muxed caption Formats. Null if no closed caption information is available in the multivariant playlist.timestampAdjuster - Adjuster corresponding to the provided discontinuity sequence number.responseHeaders - The HTTP response headers associated with the media segment or initialization section to extract.sniffingExtractorInput - The first extractor input that will be passed to the returned extractor's Extractor.read(ExtractorInput, PositionHolder). Must only be used to call Extractor.sniff(ExtractorInput).playerId - The PlayerId of the player using this extractors factory.Returns:An HlsMediaChunkExtractor.Throws:IOException - If an I/O error is encountered while sniffing.