public final class SsDownloadAction
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 |
|---|
SsDownloadAction(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 SsDownloadAction |
createDownloadAction(android.net.Uri uri,
byte[] data,
java.util.List<com.google.android.exoplayer2.offline.StreamKey> keys)
Creates a SmoothStreaming download action.
|
SsDownloader |
createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper) |
static SsDownloadAction |
createRemoveAction(android.net.Uri uri,
byte[] data)
Creates a SmoothStreaming remove action.
|
equals, getKeys, hashCode, writeToStreampublic static final com.google.android.exoplayer2.offline.DownloadAction.Deserializer DESERIALIZER
@Deprecated
public SsDownloadAction(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 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.public static SsDownloadAction 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 SsDownloadAction 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 SsDownloader createDownloader(com.google.android.exoplayer2.offline.DownloaderConstructorHelper constructorHelper)
createDownloader in class com.google.android.exoplayer2.offline.DownloadAction