Class HlsMultivariantPlaylist.Variant
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.playlist.HlsMultivariantPlaylist.Variant
-
- Enclosing class:
- HlsMultivariantPlaylist
public static final class HlsMultivariantPlaylist.Variant extends Object
A variant (i.e. an #EXT-X-STREAM-INF tag) in a multivariant playlist.
-
-
Field Summary
Fields Modifier and Type Field Description String
audioGroupId
The audio rendition group referenced by this variant, ornull
.String
captionGroupId
The caption rendition group referenced by this variant, ornull
.Format
format
Format information associated with this variant.String
subtitleGroupId
The subtitle rendition group referenced by this variant, ornull
.Uri
url
The variant's url.String
videoGroupId
The video rendition group referenced by this variant, ornull
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HlsMultivariantPlaylist.Variant
copyWithFormat(Format format)
Returns a copy of this instance with the givenFormat
.static HlsMultivariantPlaylist.Variant
createMediaPlaylistVariantUrl(Uri url)
Creates a variant for a given media playlist url.
-
-
-
Field Detail
-
url
public final Uri url
The variant's url.
-
format
public final Format format
Format information associated with this variant.
-
videoGroupId
@Nullable public final String videoGroupId
The video rendition group referenced by this variant, ornull
.
-
audioGroupId
@Nullable public final String audioGroupId
The audio rendition group referenced by this variant, ornull
.
-
subtitleGroupId
@Nullable public final String subtitleGroupId
The subtitle rendition group referenced by this variant, ornull
.
-
captionGroupId
@Nullable public final String captionGroupId
The caption rendition group referenced by this variant, ornull
.
-
-
Constructor Detail
-
Variant
public Variant(Uri url, Format format, @Nullable String videoGroupId, @Nullable String audioGroupId, @Nullable String subtitleGroupId, @Nullable String captionGroupId)
- Parameters:
url
- Seeurl
.format
- Seeformat
.videoGroupId
- SeevideoGroupId
.audioGroupId
- SeeaudioGroupId
.subtitleGroupId
- SeesubtitleGroupId
.captionGroupId
- SeecaptionGroupId
.
-
-
Method Detail
-
createMediaPlaylistVariantUrl
public static HlsMultivariantPlaylist.Variant createMediaPlaylistVariantUrl(Uri url)
Creates a variant for a given media playlist url.- Parameters:
url
- The media playlist url.- Returns:
- The variant instance.
-
copyWithFormat
public HlsMultivariantPlaylist.Variant copyWithFormat(Format format)
Returns a copy of this instance with the givenFormat
.
-
-