Package com.brightcove.player.offline
Interface MediaDownloadable.DownloadEventListener
- Enclosing class:
- MediaDownloadable
public static interface MediaDownloadable.DownloadEventListener
Interface definition for a callback to be invoked when a media download is either completed,
cancelled or failed because an error has occurred.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDownloadCanceled
(Video video) This method will be invoked when the download request of a media has been cancelled.void
onDownloadCompleted
(Video video, DownloadStatus status) This method will be invoked upon successful download of the requested media.void
onDownloadDeleted
(Video video) This method will be invoked when the fully downloaded copy of a media was deleted.void
onDownloadFailed
(Video video, DownloadStatus status) This method will be invoked when the requested of a media cannot be downloaded due to an error.void
onDownloadPaused
(Video video, DownloadStatus status) This method will be invoked when the requested of a media cannot be downloaded due to an error.void
onDownloadProgress
(Video video, DownloadStatus status) This method will be called when the download request is currently running.void
onDownloadRequested
(Video video) This method will be called when download request begins to process.void
onDownloadStarted
(Video video, long estimatedSize, Map<String, Serializable> mediaProperties) This method will be called after successfully placing all required assets for the media in the download queue.
-
Method Details
-
onDownloadRequested
This method will be called when download request begins to process.- Parameters:
video
- the video that has started.
-
onDownloadStarted
void onDownloadStarted(@NonNull Video video, long estimatedSize, @NonNull Map<String, Serializable> mediaProperties) This method will be called after successfully placing all required assets for the media in the download queue.- Parameters:
video
- the video that was queued.estimatedSize
- estimated total size of the download.mediaProperties
- map of information related to the video being downloaded.
-
onDownloadProgress
This method will be called when the download request is currently running.- Parameters:
video
- the video download that is being downloaded.status
- the detailed status of the download.
-
onDownloadPaused
This method will be invoked when the requested of a media cannot be downloaded due to an error.- Parameters:
video
- the video download that has been paused.status
- the detailed status of the download.
-
onDownloadCompleted
This method will be invoked upon successful download of the requested media.- Parameters:
video
- the video that was downloaded.
-
onDownloadCanceled
This method will be invoked when the download request of a media has been cancelled.- Parameters:
video
- the video that was cancelled.
-
onDownloadDeleted
This method will be invoked when the fully downloaded copy of a media was deleted.- Parameters:
video
- the video that was deleted.
-
onDownloadFailed
This method will be invoked when the requested of a media cannot be downloaded due to an error.- Parameters:
video
- the video that failed.status
- the detailed status of the download.
-