Class DefaultHlsExtractorFactory
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.DefaultHlsExtractorFactory
-
- All Implemented Interfaces:
HlsExtractorFactory
@Deprecated public final class DefaultHlsExtractorFactory extends Object implements HlsExtractorFactory
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.DefaultHlsExtractorFactory
implementation.
-
-
Field Summary
-
Fields inherited from interface com.google.android.exoplayer2.source.hls.HlsExtractorFactory
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultHlsExtractorFactory()
Deprecated.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 anExtractor
for extracting HLS media chunks.
-
-
-
Constructor Detail
-
DefaultHlsExtractorFactory
public DefaultHlsExtractorFactory()
Deprecated.
-
DefaultHlsExtractorFactory
public DefaultHlsExtractorFactory(int payloadReaderFactoryFlags, boolean exposeCea608WhenMissingDeclarations)
Deprecated.Creates a factory for HLS segment extractors.- Parameters:
payloadReaderFactoryFlags
- Flags to add when constructing anyDefaultTsPayloadReaderFactory
instances. Other flags may be added on top ofpayloadReaderFactoryFlags
when creatingDefaultTsPayloadReaderFactory
.exposeCea608WhenMissingDeclarations
- Whether createdTsExtractor
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 createExtractor(Uri uri, Format format, @Nullable List<Format> muxedCaptionFormats, TimestampAdjuster timestampAdjuster, Map<String,List<String>> responseHeaders, ExtractorInput sniffingExtractorInput, PlayerId playerId) throws IOException
Deprecated.Description copied from interface:HlsExtractorFactory
Creates anExtractor
for extracting HLS media chunks.- Specified by:
createExtractor
in interfaceHlsExtractorFactory
- Parameters:
uri
- The URI of the media chunk.format
- AFormat
associated with the chunk to extract.muxedCaptionFormats
- List of muxed captionFormat
s. 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'sExtractor.read(ExtractorInput, PositionHolder)
. Must only be used to callExtractor.sniff(ExtractorInput)
.playerId
- ThePlayerId
of the player using this extractors factory.- Returns:
- An
HlsMediaChunkExtractor
. - Throws:
IOException
- If an I/O error is encountered while sniffing.
-
-