# HlsPlaylist

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/playlist/HlsPlaylist.java+class:androidx.media3.exoplayer.hls.playlist.HlsPlaylist)

*** ** * ** ***


```
@UnstableApi
public abstract class HlsPlaylist implements FilterableManifest<HlsPlaylist>
```

<br />

Known direct subclasses [HlsMediaPlaylist](https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist), [HlsMultivariantPlaylist](https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist)

|---|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist` | Represents an HLS media playlist. |
| `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsMultivariantPlaylist` | Represents an HLS multivariant playlist. |

*** ** * ** ***

Represents an HLS playlist.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#baseUri()` The base uri. |
| `final boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#hasIndependentSegments()` Whether the media is formed of independent segments, as defined by the #EXT-X-INDEPENDENT-SEGMENTS tag. |
| `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#tags()` The list of tags in the playlist. |

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#HlsPlaylist(java.lang.String,java.util.List<java.lang.String>,boolean)( https://developer.android.com/reference/java/lang/String.html baseUri, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html> tags, boolean hasIndependentSegments )` |

### Inherited methods

From [androidx.media3.exoplayer.offline.FilterableManifest](https://developer.android.com/reference/androidx/media3/exoplayer/offline/FilterableManifest) `abstract T` `https://developer.android.com/reference/androidx/media3/exoplayer/offline/FilterableManifest#copy(java.util.List<androidx.media3.common.StreamKey>)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/StreamKey> streamKeys)`

Returns a copy of the manifest including only the streams specified by the given keys.

## Public fields

### baseUri

```
public final String baseUri
```

The base uri. Used to resolve relative paths.

### hasIndependentSegments

```
public final boolean hasIndependentSegments
```

Whether the media is formed of independent segments, as defined by the #EXT-X-INDEPENDENT-SEGMENTS tag.

### tags

```
public final List<String> tags
```

The list of tags in the playlist.

## Protected constructors

### HlsPlaylist

```
protected HlsPlaylist(
    String baseUri,
    List<String> tags,
    boolean hasIndependentSegments
)
```

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html baseUri` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#baseUri()`. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html> tags` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#tags()`. |
| `boolean hasIndependentSegments` | See `https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsPlaylist#hasIndependentSegments()`. |