# HlsTrackMetadataEntry.VariantInfo

# HlsTrackMetadataEntry.VariantInfo

Artifact:[androidx.media3:media3-exoplayer-hls](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.java+class:androidx.media3.exoplayer.hls.HlsTrackMetadataEntry.VariantInfo)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo "View this page in Java")

<br />

```
class HlsTrackMetadataEntry.VariantInfo
```

<br />

*** ** * ** ***

Holds attributes defined in an EXT-X-STREAM-INF tag.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [VariantInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#VariantInfo(int,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String))`(` ` averageBitrate: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` peakBitrate: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` videoGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?,` ` audioGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?,` ` subtitleGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?,` ` captionGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` `)` Creates an instance. |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#hashCode())`()`                                                                                                  |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [audioGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#audioGroupId()) The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.                                                                                                                                     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [averageBitrate](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#averageBitrate()) The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or[NO_VALUE](https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE())if the attribute is not declared. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [captionGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#captionGroupId()) The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.                                                                                                             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [peakBitrate](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#peakBitrate()) The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.                                                                                                                                                         |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [subtitleGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#subtitleGroupId()) The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.                                                                                                                       |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [videoGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#videoGroupId()) The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.                                                                                                                                     |

## Public constructors

### VariantInfo

```
VariantInfo(
    averageBitrate: Int,
    peakBitrate: Int,
    videoGroupId: String?,
    audioGroupId: String?,
    subtitleGroupId: String?,
    captionGroupId: String?
)
```

Creates an instance.  

|                                               Parameters                                                |
|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| `averageBitrate: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)           | See[averageBitrate](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#averageBitrate()).   |
| `peakBitrate: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)              | See[peakBitrate](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#peakBitrate()).         |
| `videoGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`    | See[videoGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#videoGroupId()).       |
| `audioGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`    | See[audioGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#audioGroupId()).       |
| `subtitleGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | See[subtitleGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#subtitleGroupId()). |
| `captionGroupId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`  | See[captionGroupId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo#captionGroupId()).   |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

## Public properties

### audioGroupId

```
val audioGroupId: String?
```

The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.  

### averageBitrate

```
val averageBitrate: Int
```

The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or[NO_VALUE](https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE())if the attribute is not declared.  

### captionGroupId

```
val captionGroupId: String?
```

The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.  

### peakBitrate

```
val peakBitrate: Int
```

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

### subtitleGroupId

```
val subtitleGroupId: String?
```

The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.  

### videoGroupId

```
val videoGroupId: String?
```

The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.