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)
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)
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.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.