Package com.jwplayer.pub.api.offline
Interface OfflineDownloadManager
public interface OfflineDownloadManager
-
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadMedia(Context context, MediaDownloadOption videoDownloadOption, MediaDownloadOption audioDownloadOption) Downloads the provided video and audio options.voiddownloadMedia(Context context, MediaDownloadOption videoDownloadOption, List<MediaDownloadOption> audioDownloadOptions) Downloads the provided video and audio options.voiddownloadMedia(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 DRMbooleanisDownloaded(String mediaId) Returns if the media associated with the provided mediaId is downloadedvoidprepareMediaDownload(Context context, PlaylistItem item) Prepares a download for the provided PlaylistItem and notifies the listener as updates become availablevoidremoveDownload(Context context, String mediaId) Removes the provided download from memoryvoidPrepare listener to notifies the download status from the download request.voidstartService(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
-