public final class SsDownloadHelper
extends com.google.android.exoplayer2.offline.DownloadHelper
DownloadHelper for SmoothStreaming streams.| Constructor and Description |
|---|
SsDownloadHelper(android.net.Uri uri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
SsDownloadAction |
getDownloadAction(byte[] data,
java.util.List<com.google.android.exoplayer2.offline.TrackKey> trackKeys) |
SsManifest |
getManifest()
Returns the SmoothStreaming manifest.
|
int |
getPeriodCount() |
SsDownloadAction |
getRemoveAction(byte[] data) |
com.google.android.exoplayer2.source.TrackGroupArray |
getTrackGroups(int periodIndex) |
protected void |
prepareInternal() |
public SsDownloadHelper(android.net.Uri uri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory)
protected void prepareInternal()
throws java.io.IOException
prepareInternal in class com.google.android.exoplayer2.offline.DownloadHelperjava.io.IOExceptionpublic SsManifest getManifest()
public int getPeriodCount()
getPeriodCount in class com.google.android.exoplayer2.offline.DownloadHelperpublic com.google.android.exoplayer2.source.TrackGroupArray getTrackGroups(int periodIndex)
getTrackGroups in class com.google.android.exoplayer2.offline.DownloadHelperpublic SsDownloadAction getDownloadAction(@Nullable byte[] data, java.util.List<com.google.android.exoplayer2.offline.TrackKey> trackKeys)
getDownloadAction in class com.google.android.exoplayer2.offline.DownloadHelperpublic SsDownloadAction getRemoveAction(@Nullable byte[] data)
getRemoveAction in class com.google.android.exoplayer2.offline.DownloadHelper