public final class HlsDownloadAction extends SegmentDownloadAction
SegmentDownloadAction.SegmentDownloadActionDeserializer
DownloadAction.Deserializer
Modifier and Type | Field and Description |
---|---|
static DownloadAction.Deserializer |
DESERIALIZER |
keys
data, isRemoveAction, type, uri, version
Constructor and Description |
---|
HlsDownloadAction(Uri uri,
boolean isRemoveAction,
byte[] data,
List<StreamKey> keys)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HlsDownloadAction |
createDownloadAction(Uri uri,
byte[] data,
List<StreamKey> keys)
Creates a HLS download action.
|
HlsDownloader |
createDownloader(DownloaderConstructorHelper constructorHelper)
Creates a
Downloader with the given parameters. |
static HlsDownloadAction |
createRemoveAction(Uri uri,
byte[] data)
Creates a HLS remove action.
|
equals, getKeys, hashCode, writeToStream
deserializeFromStream, getDefaultDeserializers, isSameMedia, serializeToStream, toByteArray
public static final DownloadAction.Deserializer DESERIALIZER
@Deprecated public HlsDownloadAction(Uri uri, boolean isRemoveAction, @Nullable byte[] data, List<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(Uri uri, @Nullable byte[] data, List<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(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(DownloaderConstructorHelper constructorHelper)
DownloadAction
Downloader
with the given parameters.createDownloader
in class DownloadAction