public final class HlsDownloadAction
extends com.google.android.exoplayer2.offline.SegmentDownloadAction
| Modifier and Type | Field and Description |
|---|---|
static com.google.android.exoplayer2.offline.DownloadAction.Deserializer |
DESERIALIZER |
| Constructor and Description |
|---|
HlsDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
byte[] data,
java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static HlsDownloadAction |
createDownloadAction(android.net.Uri uri,
byte[] data,
java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
Creates a HLS download action.
|
HlsDownloader |
createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper) |
static HlsDownloadAction |
createRemoveAction(android.net.Uri uri,
byte[] data)
Creates a HLS remove action.
|
equals, getKeys, hashCode, writeToStreampublic static final com.google.android.exoplayer2.offline.DownloadAction.Deserializer DESERIALIZER
@Deprecated
public HlsDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
@Nullable
byte[] data,
java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
createDownloadAction(Uri, byte[], List) or createRemoveAction(Uri, byte[]).uri - The HLS playlist URI.isRemoveAction - Whether the data will be removed. If false it will be downloaded.data - Optional custom data for this action.keys - Keys of renditions to be downloaded. If empty, all renditions are downloaded. If
removeAction is true, keys must empty.public static HlsDownloadAction createDownloadAction(android.net.Uri uri, @Nullable byte[] data, java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
uri - The URI of the media to be downloaded.data - Optional custom data for this action. If null an empty array will be used.keys - Keys of tracks to be downloaded. If empty, all tracks will be downloaded.public static HlsDownloadAction createRemoveAction(android.net.Uri uri, @Nullable byte[] data)
uri - The URI of the media to be removed.data - Optional custom data for this action. If null an empty array will be used.public HlsDownloader createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper)
createDownloader in class com.google.android.exoplayer2.offline.DownloadAction