public final class DashDownloadAction extends com.google.android.exoplayer2.offline.SegmentDownloadAction<RepresentationKey>
| 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<RepresentationKey> keys) |
| Modifier and Type | Method and Description |
|---|---|
protected DashDownloader |
createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper) |
protected void |
writeKey(java.io.DataOutputStream output,
RepresentationKey key) |
equals, hashCode, writeToStreampublic static final com.google.android.exoplayer2.offline.DownloadAction.Deserializer DESERIALIZER
public DashDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
@Nullable
byte[] data,
java.util.List<RepresentationKey> keys)
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.protected DashDownloader createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper)
createDownloader in class com.google.android.exoplayer2.offline.DownloadActionprotected void writeKey(java.io.DataOutputStream output,
RepresentationKey key)
throws java.io.IOException
writeKey in class com.google.android.exoplayer2.offline.SegmentDownloadAction<RepresentationKey>java.io.IOException