Package com.jwplayer.pub.api.offline
Interface OfflineDownloadManager
public interface OfflineDownloadManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
downloadMedia
(Context context, MediaDownloadOption videoDownloadOption, MediaDownloadOption audioDownloadOption) Downloads the provided video and audio options.void
downloadMedia
(Context context, MediaDownloadOption videoDownloadOption, List<MediaDownloadOption> audioDownloadOptions) Downloads the provided video and audio options.void
downloadMedia
(Context context, MediaDownloadOption videoDownloadOption, List<MediaDownloadOption> audioDownloadOptions, List<MediaDownloadOption> textDownloadOptions) Downloads the provided video, audio, and text options.Returns a Set of all downloaded mediaIDsgetDownloadedPlaylistItem
(String mediaId) Returns the PlaylistItem to be used for setting up Offline DRMboolean
isDownloaded
(String mediaId) Returns if the media associated with the provided mediaId is downloadedvoid
prepareMediaDownload
(Context context, PlaylistItem item) Prepares a download for the provided PlaylistItem and notifies the listener as updates become availablevoid
removeDownload
(Context context, String mediaId) Removes the provided download from memoryvoid
Prepare listener to notifies the download status from the download request.void
startService
(Context context) Starts the Download Service
-
Method Details
-
prepareMediaDownload
Prepares a download for the provided PlaylistItem and notifies the listener as updates become available -
setMediaDownloadResultListener
Prepare listener to notifies the download status from the download request. -
downloadMedia
void downloadMedia(Context context, MediaDownloadOption videoDownloadOption, MediaDownloadOption audioDownloadOption) Downloads the provided video and audio options. -
downloadMedia
void downloadMedia(Context context, MediaDownloadOption videoDownloadOption, List<MediaDownloadOption> audioDownloadOptions) Downloads the provided video and audio options. -
downloadMedia
void downloadMedia(Context context, MediaDownloadOption videoDownloadOption, List<MediaDownloadOption> audioDownloadOptions, List<MediaDownloadOption> textDownloadOptions) Downloads the provided video, audio, and text options. -
getAllDownloads
Returns a Set of all downloaded mediaIDs -
startService
void startService(Context context) Starts the Download Service -
removeDownload
Removes the provided download from memory -
isDownloaded
Returns if the media associated with the provided mediaId is downloaded -
getDownloadedPlaylistItem
Returns the PlaylistItem to be used for setting up Offline DRM
-