A class that handles DASH offline playback. More...

Classes | |
interface Listener | |
Public Member Functions | |
DashDownloader (Context context, DownloadOptions options, Listener listener) | |
Constructor. More... | |
void startDownload () | |
This is to start/resume the download process All the segments already downloaded will be skipped. More... | |
void abort () | |
Abort the download Ooyala will cancel all the pending download tasks. More... | |
boolean deleteAll () | |
Completely remove a folder and its contents for an offline video This is to remove the folder before reuse the same folder name. More... | |
long getLicenseExpirationDate () | |
Get the license expiration data from the license file. More... | |
void onCompleted (String embedCode) | |
Called when the license has been downloaded successfully. More... | |
void onFailed (String embedCode, Throwable ex) | |
Called when the license download is failed. More... | |
Static Public Attributes | |
static final String REPRESENTATION_FILE = "representationKeys.csv" | |
Detailed Description
A class that handles DASH offline playback.
Constructor & Destructor Documentation
com.ooyala.android.offline.DashDownloader.DashDownloader | ( | Context | context, |
DownloadOptions | options, | ||
Listener | listener | ||
) |
Constructor.
- Parameters
-
context a context options the DASH downloader options listener an event listener
Member Function Documentation
void com.ooyala.android.offline.DashDownloader.abort | ( | ) |
Abort the download Ooyala will cancel all the pending download tasks.
If all segments are downloaded this will be ignored.
boolean com.ooyala.android.offline.DashDownloader.deleteAll | ( | ) |
Completely remove a folder and its contents for an offline video This is to remove the folder before reuse the same folder name.
- Returns
- true on success, false otherwise
long com.ooyala.android.offline.DashDownloader.getLicenseExpirationDate | ( | ) |
Get the license expiration data from the license file.
This should be called after video files are downloaded in the folder specified.
- Returns
- the license expiration date, in seconds from epoch. 0 if license file does not exist.
void com.ooyala.android.offline.DashDownloader.onCompleted | ( | String | embedCode | ) |
Called when the license has been downloaded successfully.
Implements com.ooyala.android.offline.LicenseDownloader.Listener.
void com.ooyala.android.offline.DashDownloader.onFailed | ( | String | embedCode, |
Throwable | ex | ||
) |
Called when the license download is failed.
Implements com.ooyala.android.offline.LicenseDownloader.Listener.
void com.ooyala.android.offline.DashDownloader.startDownload | ( | ) |
This is to start/resume the download process All the segments already downloaded will be skipped.
If users do not want to re-us
Member Data Documentation
|
static |