# HlsTrackMetadataEntry

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)

*** ** * ** ***

<br />

```
@UnstableApi
class HlsTrackMetadataEntry : Metadata.Entry
```

<br />

*** ** * ** ***

Holds metadata associated to an HLS media track.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo` Holds attributes defined in an EXT-X-STREAM-INF tag. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#HlsTrackMetadataEntry(java.lang.String,java.lang.String,java.util.List<androidx.media3.exoplayer.hls.HlsTrackMetadataEntry.VariantInfo>)( groupId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, variantInfos: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo!>! )` Creates an instance. |

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

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#groupId()` The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#name()` The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#variantInfos()` The EXT-X-STREAM-INF tags attributes associated with this track. |

### Inherited functions

From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()()`

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
`https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()`

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Metadata.Entry#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(builder: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder!)`

Updates the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`.

## Public constructors

### HlsTrackMetadataEntry

```
HlsTrackMetadataEntry(
    groupId: String?,
    name: String?,
    variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!
)
```

Creates an instance.

| Parameters |
|---|---|
| `groupId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#groupId()`. |
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#name()`. |
| `variantInfos: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo!>!` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#variantInfos()`. |

## Public functions

### equals

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

### hashCode

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

### toString

```
fun toString(): String!
```

## Public properties

### groupId

```
val groupId: String?
```

The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the track is not derived from an EXT-X-MEDIA TAG.

### name

```
val name: String?
```

The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the track is not derived from an EXT-X-MEDIA TAG.

### variantInfos

```
val variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!
```

The EXT-X-STREAM-INF tags attributes associated with this track. This field is non-applicable (and therefore empty) if this track is derived from an EXT-X-MEDIA tag.