public final class HlsDownloadHelper
extends com.google.android.exoplayer2.offline.DownloadHelper
DownloadHelper for HLS streams.| Constructor and Description |
|---|
HlsDownloadHelper(android.net.Uri uri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
HlsDownloadAction |
getDownloadAction(byte[] data,
java.util.List<com.google.android.exoplayer2.offline.TrackKey> trackKeys) |
int |
getPeriodCount() |
HlsPlaylist |
getPlaylist()
Returns the HLS playlist.
|
HlsDownloadAction |
getRemoveAction(byte[] data) |
com.google.android.exoplayer2.source.TrackGroupArray |
getTrackGroups(int periodIndex) |
protected void |
prepareInternal() |
public HlsDownloadHelper(android.net.Uri uri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory)
protected void prepareInternal()
throws java.io.IOException
prepareInternal in class com.google.android.exoplayer2.offline.DownloadHelperjava.io.IOExceptionpublic HlsPlaylist getPlaylist()
public int getPeriodCount()
getPeriodCount in class com.google.android.exoplayer2.offline.DownloadHelperpublic com.google.android.exoplayer2.source.TrackGroupArray getTrackGroups(int periodIndex)
getTrackGroups in class com.google.android.exoplayer2.offline.DownloadHelperpublic HlsDownloadAction getDownloadAction(@Nullable byte[] data, java.util.List<com.google.android.exoplayer2.offline.TrackKey> trackKeys)
getDownloadAction in class com.google.android.exoplayer2.offline.DownloadHelperpublic HlsDownloadAction getRemoveAction(@Nullable byte[] data)
getRemoveAction in class com.google.android.exoplayer2.offline.DownloadHelper