public interface HlsExtractorFactory
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
static final HlsExtractorFactory DEFAULT
HlsExtractorFactory.Result createExtractor(Extractor previousExtractor, Uri uri, Format format, List<Format> muxedCaptionFormats, DrmInitData drmInitData, TimestampAdjuster timestampAdjuster, Map<String,List<String>> responseHeaders, ExtractorInput sniffingExtractorInput) throws InterruptedException, IOException
Extractorfor extracting HLS media chunks.
previousExtractor- A previously used
Extractorwhich 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.
Formatassociated with the chunk to extract.
muxedCaptionFormats- List of muxed caption
Formats. Null if no closed caption information is available in the master playlist.
DrmInitDataassociated 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
InterruptedException- If the thread is interrupted while sniffing.
IOException- If an I/O error is encountered while sniffing.