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

*** ** * ** ***


```
@UnstableApi
public final class HlsTrackMetadataEntry implements Metadata.Entry
```

<br />

*** ** * ** ***

Holds metadata associated to an HLS media track.

## Summary

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

| ### Public fields |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#groupId()` The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#name()` The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. |
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo>` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#variantInfos()` The EXT-X-STREAM-INF tags attributes associated with this track. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#HlsTrackMetadataEntry(java.lang.String,java.lang.String,java.util.List<androidx.media3.exoplayer.hls.HlsTrackMetadataEntry.VariantInfo>)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html groupId, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html name, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo> variantInfos )` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#hashCode()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#toString()()` |

| ### Inherited methods |
|---|
| From [androidx.media3.common.Metadata.Entry](https://developer.android.com/reference/androidx/media3/common/Metadata.Entry) |---|---| | `@https://developer.android.com/reference/androidx/annotation/Nullable byte[]` | `https://developer.android.com/reference/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/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataFormat()()` Returns the `https://developer.android.com/reference/androidx/media3/common/Format` that can be used to decode the wrapped metadata in `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#getWrappedMetadataBytes()`, or null if this Entry doesn't contain wrapped metadata. | | `void` | `https://developer.android.com/reference/androidx/media3/common/Metadata.Entry#populateMediaMetadata(androidx.media3.common.MediaMetadata.Builder)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder builder)` Updates the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` with the type-specific values stored in this ` Entry`. | |

## Public fields

### groupId

```
public final @Nullable String groupId
```

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

```
public final @Nullable String name
```

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

```
public final List<HlsTrackMetadataEntry.VariantInfo> variantInfos
```

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.

## Public constructors

### HlsTrackMetadataEntry

```
public HlsTrackMetadataEntry(
    @Nullable String groupId,
    @Nullable String name,
    List<HlsTrackMetadataEntry.VariantInfo> variantInfos
)
```

Creates an instance.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html groupId` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#groupId()`. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html name` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#name()`. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry.VariantInfo> variantInfos` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsTrackMetadataEntry#variantInfos()`. |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```