Class HlsMultivariantPlaylist
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
-
- com.google.android.exoplayer2.source.hls.playlist.HlsMultivariantPlaylist
-
- All Implemented Interfaces:
FilterableManifest<HlsPlaylist>
@Deprecated public final class HlsMultivariantPlaylist extends HlsPlaylist
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Represents an HLS multivariant playlist.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HlsMultivariantPlaylist.Rendition
Deprecated.A rendition (i.e.static class
HlsMultivariantPlaylist.Variant
Deprecated.A variant (i.e.
-
Field Summary
Fields Modifier and Type Field Description List<HlsMultivariantPlaylist.Rendition>
audios
Deprecated.The audio renditions declared by the playlist.List<HlsMultivariantPlaylist.Rendition>
closedCaptions
Deprecated.The closed caption renditions declared by the playlist.static HlsMultivariantPlaylist
EMPTY
Deprecated.Represents an empty multivariant playlist, from which no attributes can be inherited.static int
GROUP_INDEX_AUDIO
Deprecated.static int
GROUP_INDEX_SUBTITLE
Deprecated.static int
GROUP_INDEX_VARIANT
Deprecated.List<Uri>
mediaPlaylistUrls
Deprecated.All of the media playlist URLs referenced by the playlist.Format
muxedAudioFormat
Deprecated.The format of the audio muxed in the variants.List<Format>
muxedCaptionFormats
Deprecated.The format of the closed captions declared by the playlist.List<DrmInitData>
sessionKeyDrmInitData
Deprecated.DRM initialization data derived from #EXT-X-SESSION-KEY tags.List<HlsMultivariantPlaylist.Rendition>
subtitles
Deprecated.The subtitle renditions declared by the playlist.Map<String,String>
variableDefinitions
Deprecated.Contains variable definitions, as defined by the #EXT-X-DEFINE tag.List<HlsMultivariantPlaylist.Variant>
variants
Deprecated.The variants declared by the playlist.List<HlsMultivariantPlaylist.Rendition>
videos
Deprecated.The video renditions declared by the playlist.-
Fields inherited from class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
baseUri, hasIndependentSegments, tags
-
-
Constructor Summary
Constructors Constructor Description HlsMultivariantPlaylist(String baseUri, List<String> tags, List<HlsMultivariantPlaylist.Variant> variants, List<HlsMultivariantPlaylist.Rendition> videos, List<HlsMultivariantPlaylist.Rendition> audios, List<HlsMultivariantPlaylist.Rendition> subtitles, List<HlsMultivariantPlaylist.Rendition> closedCaptions, Format muxedAudioFormat, List<Format> muxedCaptionFormats, boolean hasIndependentSegments, Map<String,String> variableDefinitions, List<DrmInitData> sessionKeyDrmInitData)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HlsMultivariantPlaylist
copy(List<StreamKey> streamKeys)
Deprecated.Returns a copy of the manifest including only the streams specified by the given keys.static HlsMultivariantPlaylist
createSingleVariantMultivariantPlaylist(String variantUrl)
Deprecated.Creates a playlist with a single variant.
-
-
-
Field Detail
-
EMPTY
public static final HlsMultivariantPlaylist EMPTY
Deprecated.Represents an empty multivariant playlist, from which no attributes can be inherited.
-
GROUP_INDEX_VARIANT
public static final int GROUP_INDEX_VARIANT
Deprecated.- See Also:
- Constant Field Values
-
GROUP_INDEX_AUDIO
public static final int GROUP_INDEX_AUDIO
Deprecated.- See Also:
- Constant Field Values
-
GROUP_INDEX_SUBTITLE
public static final int GROUP_INDEX_SUBTITLE
Deprecated.- See Also:
- Constant Field Values
-
mediaPlaylistUrls
public final List<Uri> mediaPlaylistUrls
Deprecated.All of the media playlist URLs referenced by the playlist.
-
variants
public final List<HlsMultivariantPlaylist.Variant> variants
Deprecated.The variants declared by the playlist.
-
videos
public final List<HlsMultivariantPlaylist.Rendition> videos
Deprecated.The video renditions declared by the playlist.
-
audios
public final List<HlsMultivariantPlaylist.Rendition> audios
Deprecated.The audio renditions declared by the playlist.
-
subtitles
public final List<HlsMultivariantPlaylist.Rendition> subtitles
Deprecated.The subtitle renditions declared by the playlist.
-
closedCaptions
public final List<HlsMultivariantPlaylist.Rendition> closedCaptions
Deprecated.The closed caption renditions declared by the playlist.
-
muxedAudioFormat
@Nullable public final Format muxedAudioFormat
Deprecated.The format of the audio muxed in the variants. May be null if the playlist does not declare any muxed audio.
-
muxedCaptionFormats
@Nullable public final List<Format> muxedCaptionFormats
Deprecated.The format of the closed captions declared by the playlist. May be empty if the playlist explicitly declares no captions are available, or null if the playlist does not declare any captions information.
-
variableDefinitions
public final Map<String,String> variableDefinitions
Deprecated.Contains variable definitions, as defined by the #EXT-X-DEFINE tag.
-
sessionKeyDrmInitData
public final List<DrmInitData> sessionKeyDrmInitData
Deprecated.DRM initialization data derived from #EXT-X-SESSION-KEY tags.
-
-
Constructor Detail
-
HlsMultivariantPlaylist
public HlsMultivariantPlaylist(String baseUri, List<String> tags, List<HlsMultivariantPlaylist.Variant> variants, List<HlsMultivariantPlaylist.Rendition> videos, List<HlsMultivariantPlaylist.Rendition> audios, List<HlsMultivariantPlaylist.Rendition> subtitles, List<HlsMultivariantPlaylist.Rendition> closedCaptions, @Nullable Format muxedAudioFormat, @Nullable List<Format> muxedCaptionFormats, boolean hasIndependentSegments, Map<String,String> variableDefinitions, List<DrmInitData> sessionKeyDrmInitData)
Deprecated.- Parameters:
baseUri
- SeeHlsPlaylist.baseUri
.tags
- SeeHlsPlaylist.tags
.variants
- Seevariants
.videos
- Seevideos
.audios
- Seeaudios
.subtitles
- Seesubtitles
.closedCaptions
- SeeclosedCaptions
.muxedAudioFormat
- SeemuxedAudioFormat
.muxedCaptionFormats
- SeemuxedCaptionFormats
.hasIndependentSegments
- SeeHlsPlaylist.hasIndependentSegments
.variableDefinitions
- SeevariableDefinitions
.sessionKeyDrmInitData
- SeesessionKeyDrmInitData
.
-
-
Method Detail
-
copy
public HlsMultivariantPlaylist copy(List<StreamKey> streamKeys)
Deprecated.Description copied from interface:FilterableManifest
Returns a copy of the manifest including only the streams specified by the given keys. If the manifest is unchanged then the instance may return itself.- Parameters:
streamKeys
- A non-empty list of stream keys.- Returns:
- The filtered manifest.
-
createSingleVariantMultivariantPlaylist
public static HlsMultivariantPlaylist createSingleVariantMultivariantPlaylist(String variantUrl)
Deprecated.Creates a playlist with a single variant.- Parameters:
variantUrl
- The url of the single variant.- Returns:
- A multivariant playlist with a single variant for the provided url.
-
-