Back to Exoplayer

HlsTrackMetadataEntry.VariantInfo (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsTrackMetadataEntry.VariantInfo.html

latest6.9 KB
Original Source

Package com.google.android.exoplayer2.source.hls

Class HlsTrackMetadataEntry.VariantInfo


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.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface android.os.Parcelable

Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>

Field Summary

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. |

- 

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | VariantInfo​(int averageBitrate, int peakBitrate, String videoGroupId, String audioGroupId, String subtitleGroupId, String captionGroupId) | Creates an instance. |

Method Summary

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) | |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

averageBitrate

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.

- 

peakBitrate

public final int peakBitrate

The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.

- 

videoGroupId

@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.

- 

audioGroupId

@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.

- 

subtitleGroupId

@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.

- 

captionGroupId

@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.

- 

CREATOR

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

Constructor Detail

- 

VariantInfo

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.

Method Detail

- 

equals

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

- 

hashCode

public int hashCode()

Overrides:hashCode in class Object

- 

describeContents

public int describeContents()

Specified by:describeContents in interface Parcelable

- 

writeToParcel

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