docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsTrackMetadataEntry.VariantInfo.html
Package com.google.android.exoplayer2.source.hls
All Implemented Interfaces:ParcelableEnclosing class:HlsTrackMetadataEntry
public static final classHlsTrackMetadataEntry.VariantInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html "class or interface in android.os")
Holds attributes defined in an EXT-X-STREAM-INF tag.
-
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| String | audioGroupId |
The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.
|
| int | averageBitrate |
The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or Format.NO_VALUE if the attribute is not declared.
|
| String | captionGroupId |
The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.
|
| static Parcelable.Creator<HlsTrackMetadataEntry.VariantInfo> | CREATOR | |
| int | peakBitrate |
The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.
|
| String | subtitleGroupId |
The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.
|
| String | videoGroupId |
The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.
|
-
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructors | Constructor | Description |
| --- | --- |
| VariantInfo(int averageBitrate, int peakBitrate, String videoGroupId, String audioGroupId, String subtitleGroupId, String captionGroupId) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | describeContents() | |
| boolean | equals(Object other) | |
| int | hashCode() | |
| void | writeToParcel(Parcel dest, int flags) | |
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final int averageBitrate
The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or Format.NO_VALUE if the attribute is not declared.
-
public final int peakBitrate
The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")videoGroupId
The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")audioGroupId
The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")subtitleGroupId
The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")captionGroupId
The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.
-
public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[HlsTrackMetadataEntry.VariantInfo](HlsTrackMetadataEntry.VariantInfo.html "class in com.google.android.exoplayer2.source.hls")> CREATOR
-
public VariantInfo(int averageBitrate,
int peakBitrate,
@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)
Creates an instance.
Parameters:averageBitrate - See averageBitrate.peakBitrate - See peakBitrate.videoGroupId - See videoGroupId.audioGroupId - See audioGroupId.subtitleGroupId - See subtitleGroupId.captionGroupId - See captionGroupId.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")other)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object
-
public int describeContents()
Specified by:describeContents in interface Parcelable
-
public void writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
int flags)
Specified by:writeToParcel in interface Parcelable