public final class SsDownloadAction extends com.google.android.exoplayer2.offline.SegmentDownloadAction<StreamKey>
| Modifier and Type | Field and Description |
|---|---|
static com.google.android.exoplayer2.offline.DownloadAction.Deserializer |
DESERIALIZER |
| Constructor and Description |
|---|
SsDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
byte[] data,
java.util.List<StreamKey> keys) |
| Modifier and Type | Method and Description |
|---|---|
protected SsDownloader |
createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper) |
protected void |
writeKey(java.io.DataOutputStream output,
StreamKey key) |
equals, hashCode, writeToStreampublic static final com.google.android.exoplayer2.offline.DownloadAction.Deserializer DESERIALIZER
public SsDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
@Nullable
byte[] data,
java.util.List<StreamKey> keys)
uri - The SmoothStreaming 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 streams to be downloaded. If empty, all streams are downloaded. If removeAction is true, keys must be empty.protected SsDownloader createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper)
createDownloader in class com.google.android.exoplayer2.offline.DownloadAction