public final class DefaultHlsExtractorFactory extends java.lang.Object implements HlsExtractorFactory
HlsExtractorFactory implementation.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AAC_FILE_EXTENSION |
static java.lang.String |
AC3_FILE_EXTENSION |
static java.lang.String |
EC3_FILE_EXTENSION |
static java.lang.String |
M4_FILE_EXTENSION_PREFIX |
static java.lang.String |
MP3_FILE_EXTENSION |
static java.lang.String |
MP4_FILE_EXTENSION |
static java.lang.String |
MP4_FILE_EXTENSION_PREFIX |
static java.lang.String |
VTT_FILE_EXTENSION |
static java.lang.String |
WEBVTT_FILE_EXTENSION |
DEFAULT| Constructor and Description |
|---|
DefaultHlsExtractorFactory() |
| 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. |
public static final java.lang.String AAC_FILE_EXTENSION
public static final java.lang.String AC3_FILE_EXTENSION
public static final java.lang.String EC3_FILE_EXTENSION
public static final java.lang.String MP3_FILE_EXTENSION
public static final java.lang.String MP4_FILE_EXTENSION
public static final java.lang.String M4_FILE_EXTENSION_PREFIX
public static final java.lang.String MP4_FILE_EXTENSION_PREFIX
public static final java.lang.String VTT_FILE_EXTENSION
public static final java.lang.String WEBVTT_FILE_EXTENSION
public 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)
HlsExtractorFactoryExtractor for extracting HLS media chunks.createExtractor in interface HlsExtractorFactorypreviousExtractor - 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.