docs/doc/reference/com/google/android/exoplayer2/source/hls/playlist/HlsMultivariantPlaylist.Variant.html
Package com.google.android.exoplayer2.source.hls.playlist
Enclosing class:HlsMultivariantPlaylist
public static final classHlsMultivariantPlaylist.Variantextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A variant (i.e. an #EXT-X-STREAM-INF tag) in a multivariant playlist.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| String | audioGroupId |
The audio rendition group referenced by this variant, or null.
|
| String | captionGroupId |
The caption rendition group referenced by this variant, or null.
|
| Format | format |
Format information associated with this variant.
|
| String | subtitleGroupId |
The subtitle rendition group referenced by this variant, or null.
|
| Uri | url |
The variant's url.
|
| String | videoGroupId |
The video rendition group referenced by this variant, or null.
|
Constructors | Constructor | Description |
| --- | --- |
| Variant(Uri url, Format format, String videoGroupId, String audioGroupId, String subtitleGroupId, String captionGroupId) | |
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 given Format.
|
| static HlsMultivariantPlaylist.Variant | createMediaPlaylistVariantUrl(Uri url) |
Creates a variant for a given media playlist url.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")url
The variant's url.
-
public final[Format](../../../Format.html "class in com.google.android.exoplayer2")format
Format information associated with this variant.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")videoGroupId
The video rendition group referenced by this variant, or null.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")audioGroupId
The audio rendition group referenced by this variant, or null.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")subtitleGroupId
The subtitle rendition group referenced by this variant, or null.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")captionGroupId
The caption rendition group referenced by this variant, or null.
-
public Variant([Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")url,[Format](../../../Format.html "class in com.google.android.exoplayer2")format,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")videoGroupId,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")audioGroupId,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")subtitleGroupId,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")captionGroupId)
Parameters:url - See url.format - See format.videoGroupId - See videoGroupId.audioGroupId - See audioGroupId.subtitleGroupId - See subtitleGroupId.captionGroupId - See captionGroupId.
-
public static[HlsMultivariantPlaylist.Variant](HlsMultivariantPlaylist.Variant.html "class in com.google.android.exoplayer2.source.hls.playlist")createMediaPlaylistVariantUrl([Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")url)
Creates a variant for a given media playlist url.
Parameters:url - The media playlist url.Returns:The variant instance.
-
public[HlsMultivariantPlaylist.Variant](HlsMultivariantPlaylist.Variant.html "class in com.google.android.exoplayer2.source.hls.playlist")copyWithFormat([Format](../../../Format.html "class in com.google.android.exoplayer2")format)
Returns a copy of this instance with the given Format.