Class HlsTrackMetadataEntry.VariantInfo
- java.lang.Object
- 
- com.google.android.exoplayer2.source.hls.HlsTrackMetadataEntry.VariantInfo
 
- 
- All Implemented Interfaces:
- Parcelable
 - Enclosing class:
- HlsTrackMetadataEntry
 
 public static final class HlsTrackMetadataEntry.VariantInfo extends Object implements Parcelable Holds attributes defined in an EXT-X-STREAM-INF tag.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface android.os.ParcelableParcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description StringaudioGroupIdThe AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.intaverageBitrateThe average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, orFormat.NO_VALUEif the attribute is not declared.StringcaptionGroupIdThe 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>CREATORintpeakBitrateThe peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.StringsubtitleGroupIdThe SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.StringvideoGroupIdThe VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.- 
Fields inherited from interface android.os.ParcelableCONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
- 
 - 
Constructor SummaryConstructors Constructor Description VariantInfo(int averageBitrate, int peakBitrate, String videoGroupId, String audioGroupId, String subtitleGroupId, String captionGroupId)Creates an instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object other)inthashCode()voidwriteToParcel(Parcel dest, int flags)
 
- 
- 
- 
Field Detail- 
averageBitratepublic final int averageBitrate The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, orFormat.NO_VALUEif the attribute is not declared.
 - 
peakBitratepublic final int peakBitrate The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.
 - 
videoGroupId@Nullable public final String videoGroupId The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.
 - 
audioGroupId@Nullable public final String audioGroupId The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.
 - 
subtitleGroupId@Nullable public final String subtitleGroupId The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.
 - 
captionGroupId@Nullable public final 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.
 - 
CREATORpublic static final Parcelable.Creator<HlsTrackMetadataEntry.VariantInfo> CREATOR 
 
- 
 - 
Constructor Detail- 
VariantInfopublic VariantInfo(int averageBitrate, int peakBitrate, @Nullable String videoGroupId, @Nullable String audioGroupId, @Nullable String subtitleGroupId, @Nullable String captionGroupId)Creates an instance.- Parameters:
- averageBitrate- See- averageBitrate.
- peakBitrate- See- peakBitrate.
- videoGroupId- See- videoGroupId.
- audioGroupId- See- audioGroupId.
- subtitleGroupId- See- subtitleGroupId.
- captionGroupId- See- captionGroupId.
 
 
- 
 - 
Method Detail- 
describeContentspublic int describeContents() - Specified by:
- describeContentsin interface- Parcelable
 
 - 
writeToParcelpublic void writeToParcel(Parcel dest, int flags) - Specified by:
- writeToParcelin interface- Parcelable
 
 
- 
 
-