com.ooyala.android.offline.DashDownloader Class Reference

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

Inheritance diagram for com.ooyala.android.offline.DashDownloader:
com.ooyala.android.offline.LicenseDownloader.Listener

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
contexta context
optionsthe DASH downloader options
listeneran 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

final String com.ooyala.android.offline.DashDownloader.REPRESENTATION_FILE = "representationKeys.csv"
static