public final class HlsMasterPlaylist extends HlsPlaylist
Modifier and Type | Class and Description |
---|---|
static class |
HlsMasterPlaylist.HlsUrl
Represents a url in an HLS master playlist.
|
Modifier and Type | Field and Description |
---|---|
List<HlsMasterPlaylist.HlsUrl> |
audios
The list of demuxed audios declared by the playlist.
|
static HlsMasterPlaylist |
EMPTY
Represents an empty master playlist, from which no attributes can be inherited.
|
static int |
GROUP_INDEX_AUDIO |
static int |
GROUP_INDEX_SUBTITLE |
static int |
GROUP_INDEX_VARIANT |
Format |
muxedAudioFormat
The format of the audio muxed in the variants.
|
List<Format> |
muxedCaptionFormats
The format of the closed captions declared by the playlist.
|
List<HlsMasterPlaylist.HlsUrl> |
subtitles
The list of subtitles declared by the playlist.
|
Map<String,String> |
variableDefinitions
Contains variable definitions, as defined by the #EXT-X-DEFINE tag.
|
List<HlsMasterPlaylist.HlsUrl> |
variants
The list of variants declared by the playlist.
|
baseUri, hasIndependentSegments, tags
Constructor and Description |
---|
HlsMasterPlaylist(String baseUri,
List<String> tags,
List<HlsMasterPlaylist.HlsUrl> variants,
List<HlsMasterPlaylist.HlsUrl> audios,
List<HlsMasterPlaylist.HlsUrl> subtitles,
Format muxedAudioFormat,
List<Format> muxedCaptionFormats,
boolean hasIndependentSegments,
Map<String,String> variableDefinitions) |
Modifier and Type | Method and Description |
---|---|
HlsMasterPlaylist |
copy(List<StreamKey> streamKeys)
Returns a copy of the manifest including only the streams specified by the given keys.
|
static HlsMasterPlaylist |
createSingleVariantMasterPlaylist(String variantUrl)
Creates a playlist with a single variant.
|
public static final HlsMasterPlaylist EMPTY
public static final int GROUP_INDEX_VARIANT
public static final int GROUP_INDEX_AUDIO
public static final int GROUP_INDEX_SUBTITLE
public final List<HlsMasterPlaylist.HlsUrl> variants
public final List<HlsMasterPlaylist.HlsUrl> audios
public final List<HlsMasterPlaylist.HlsUrl> subtitles
public final Format muxedAudioFormat
public final List<Format> muxedCaptionFormats
public HlsMasterPlaylist(String baseUri, List<String> tags, List<HlsMasterPlaylist.HlsUrl> variants, List<HlsMasterPlaylist.HlsUrl> audios, List<HlsMasterPlaylist.HlsUrl> subtitles, Format muxedAudioFormat, List<Format> muxedCaptionFormats, boolean hasIndependentSegments, Map<String,String> variableDefinitions)
baseUri
- See HlsPlaylist.baseUri
.tags
- See HlsPlaylist.tags
.variants
- See variants
.audios
- See audios
.subtitles
- See subtitles
.muxedAudioFormat
- See muxedAudioFormat
.muxedCaptionFormats
- See muxedCaptionFormats
.hasIndependentSegments
- See HlsPlaylist.hasIndependentSegments
.variableDefinitions
- See variableDefinitions
.public HlsMasterPlaylist copy(List<StreamKey> streamKeys)
FilterableManifest
streamKeys
- A non-empty list of stream keys.public static HlsMasterPlaylist createSingleVariantMasterPlaylist(String variantUrl)
variantUrl
- The url of the single variant.