Back to Exoplayer

HlsPlaylist (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.html

latest3.7 KB
Original Source

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

Class HlsPlaylist

  • java.lang.Object

    • com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
  • All Implemented Interfaces:FilterableManifest<HlsPlaylist>Direct Known Subclasses:HlsMediaPlaylist, HlsMultivariantPlaylist


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classHlsPlaylistextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[FilterableManifest](../../../offline/FilterableManifest.html "interface in com.google.android.exoplayer2.offline")<[HlsPlaylist](HlsPlaylist.html "class in com.google.android.exoplayer2.source.hls.playlist")>

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Represents an HLS playlist.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | String | baseUri | Deprecated.

The base uri. | | boolean | hasIndependentSegments | Deprecated.

Whether the media is formed of independent segments, as defined by the #EXT-X-INDEPENDENT-SEGMENTS tag. | | List<String> | tags | Deprecated.

The list of tags in the playlist. |

Constructor Summary

Constructors | Modifier | Constructor | Description | | --- | --- | --- | | protected | HlsPlaylist​(String baseUri, List<String> tags, boolean hasIndependentSegments) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Object

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

- 

Methods inherited from interface com.google.android.exoplayer2.offline.FilterableManifest

copy

Field Detail

- 

baseUri

public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")baseUri

Deprecated.

The base uri. Used to resolve relative paths.

- 

tags

public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")> tags

Deprecated.

The list of tags in the playlist.

- 

hasIndependentSegments

public final boolean hasIndependentSegments

Deprecated.

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

Constructor Detail

- 

HlsPlaylist

protected HlsPlaylist​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")baseUri,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")> tags,
                      boolean hasIndependentSegments)

Deprecated. Parameters:baseUri - See baseUri.tags - See tags.hasIndependentSegments - See hasIndependentSegments.