public interface HlsExtractorFactory
| Modifier and Type | Field and Description |
|---|---|
static HlsExtractorFactory |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
android.util.Pair<com.google.android.exoplayer2.extractor.Extractor,java.lang.Boolean> |
createExtractor(com.google.android.exoplayer2.extractor.Extractor previousExtractor,
android.net.Uri uri,
com.google.android.exoplayer2.Format format,
java.util.List<com.google.android.exoplayer2.Format> muxedCaptionFormats,
com.google.android.exoplayer2.drm.DrmInitData drmInitData,
com.google.android.exoplayer2.util.TimestampAdjuster timestampAdjuster,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders,
com.google.android.exoplayer2.extractor.ExtractorInput sniffingExtractorInput)
Creates an
Extractor for extracting HLS media chunks. |
static final HlsExtractorFactory DEFAULT
android.util.Pair<com.google.android.exoplayer2.extractor.Extractor,java.lang.Boolean> createExtractor(com.google.android.exoplayer2.extractor.Extractor previousExtractor,
android.net.Uri uri,
com.google.android.exoplayer2.Format format,
java.util.List<com.google.android.exoplayer2.Format> muxedCaptionFormats,
com.google.android.exoplayer2.drm.DrmInitData drmInitData,
com.google.android.exoplayer2.util.TimestampAdjuster timestampAdjuster,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders,
com.google.android.exoplayer2.extractor.ExtractorInput sniffingExtractorInput)
throws java.lang.InterruptedException,
java.io.IOException
Extractor for extracting HLS media chunks.previousExtractor - A previously used Extractor which can be reused if the current
chunk is a continuation of the previously extracted chunk, or null otherwise. It is the
responsibility of implementers to only reuse extractors that are suited for reusage.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 master playlist.drmInitData - DrmInitData associated with the chunk.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).Extractor and a boolean that indicates whether it is a
packed audio extractor. The first element may be previousExtractor if the factory
has determined it can be re-used.java.lang.InterruptedException - If the thread is interrupted while sniffing.java.io.IOException - If an I/O error is encountered while sniffing.