Back to Exoplayer

HlsExtractorFactory (ExoPlayer library)

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

latest4.8 KB
Original Source

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

Interface HlsExtractorFactory

  • All Known Implementing Classes:DefaultHlsExtractorFactory

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceHlsExtractorFactory

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.

Factory for HLS media chunk extractors.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static HlsExtractorFactory | DEFAULT | Deprecated. |

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | HlsMediaChunkExtractor | 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. |

Field Detail

- 

DEFAULT

static final[HlsExtractorFactory](HlsExtractorFactory.html "interface in com.google.android.exoplayer2.source.hls")DEFAULT

Deprecated.

Method Detail

- 

createExtractor

[HlsMediaChunkExtractor](HlsMediaChunkExtractor.html "interface 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.

Creates an Extractor for extracting HLS media chunks. Parameters: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.