com.ooyala.android.offline.DownloadListener Interface Reference

Listens for changes in the media file downloads. More...

Public Member Functions

void onStarted (TaskInfo taskInfo)
 Called when the task is currently started. More...
 
void onCompleted (TaskInfo taskInfo)
 Called when the download task completed. More...
 
void onCanceled (TaskInfo taskInfo)
 Called when the task was canceled. More...
 
void onDeleted (TaskInfo taskInfo)
 Called when the media and the DRM license (if exist) is currently deleted from the device. More...
 
void onFailed (TaskInfo taskInfo, Throwable e)
 Called when the task failed. More...
 
void onBitratesObtained (HashMap< String, Integer > bitrates)
 Called when the list of available bitrates has obtained from the manifest. More...
 

Detailed Description

Listens for changes in the media file downloads.

Member Function Documentation

void com.ooyala.android.offline.DownloadListener.onBitratesObtained ( HashMap< String, Integer >  bitrates)

Called when the list of available bitrates has obtained from the manifest.

Parameters
bitrateskeeps a user readable track name as a key and an appropriate bitrate as a value.
void com.ooyala.android.offline.DownloadListener.onCanceled ( TaskInfo  taskInfo)

Called when the task was canceled.

void com.ooyala.android.offline.DownloadListener.onCompleted ( TaskInfo  taskInfo)

Called when the download task completed.

void com.ooyala.android.offline.DownloadListener.onDeleted ( TaskInfo  taskInfo)

Called when the media and the DRM license (if exist) is currently deleted from the device.

void com.ooyala.android.offline.DownloadListener.onFailed ( TaskInfo  taskInfo,
Throwable  e 
)

Called when the task failed.

void com.ooyala.android.offline.DownloadListener.onStarted ( TaskInfo  taskInfo)

Called when the task is currently started.