public final class DashDownloadAction
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 |
|---|
DashDownloadAction(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 DashDownloadAction |
createDownloadAction(android.net.Uri uri,
byte[] data,
java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
Creates a DASH download action.
|
DashDownloader |
createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper) |
static DashDownloadAction |
createRemoveAction(android.net.Uri uri,
byte[] data)
Creates a DASH remove action.
|
equals, getKeys, hashCode, writeToStreampublic static final com.google.android.exoplayer2.offline.DownloadAction.Deserializer DESERIALIZER
@Deprecated
public DashDownloadAction(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 DASH manifest URI.isRemoveAction - Whether the data will be removed. If false it will be downloaded.data - Optional custom data for this action.keys - Keys of representations to be downloaded. If empty, all representations are
downloaded. If removeAction is true, keys must be empty.public static DashDownloadAction 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 DashDownloadAction 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 DashDownloader createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper)
createDownloader in class com.google.android.exoplayer2.offline.DownloadAction