Package com.jwplayer.pub.api.offline
Interface OfflineDownloadManager
-
public interface OfflineDownloadManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddownloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, MediaDownloadOption audioDownloadOption)Downloads the provided video and audio options.voiddownloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, java.util.List<MediaDownloadOption> audioDownloadOptions)Downloads the provided video and audio options.voiddownloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, java.util.List<MediaDownloadOption> audioDownloadOptions, java.util.List<MediaDownloadOption> textDownloadOptions)Downloads the provided video, audio, and text options.java.util.Set<java.lang.String>getAllDownloads()Returns a Set of all downloaded mediaIDsPlaylistItemgetDownloadedPlaylistItem(java.lang.String mediaId)Returns the PlaylistItem to be used for setting up Offline DRMbooleanisDownloaded(java.lang.String mediaId)Returns if the media associated with the provided mediaId is downloadedvoidprepareMediaDownload(android.content.Context context, PlaylistItem item, MediaDownloadResultListener listener)Prepares a download for the provided PlaylistItem and notifies the listener as updates become availablevoidremoveDownload(android.content.Context context, java.lang.String mediaId)Removes the provided download from memoryvoidstartService(android.content.Context context)Starts the Download Service
-
-
-
Method Detail
-
prepareMediaDownload
void prepareMediaDownload(android.content.Context context, PlaylistItem item, MediaDownloadResultListener listener)Prepares a download for the provided PlaylistItem and notifies the listener as updates become available
-
downloadMedia
void downloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, MediaDownloadOption audioDownloadOption)Downloads the provided video and audio options.
-
downloadMedia
void downloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, java.util.List<MediaDownloadOption> audioDownloadOptions)Downloads the provided video and audio options.
-
downloadMedia
void downloadMedia(android.content.Context context, MediaDownloadOption videoDownloadOption, java.util.List<MediaDownloadOption> audioDownloadOptions, java.util.List<MediaDownloadOption> textDownloadOptions)Downloads the provided video, audio, and text options.
-
getAllDownloads
java.util.Set<java.lang.String> getAllDownloads()
Returns a Set of all downloaded mediaIDs
-
startService
void startService(android.content.Context context)
Starts the Download Service
-
removeDownload
void removeDownload(android.content.Context context, java.lang.String mediaId)Removes the provided download from memory
-
isDownloaded
boolean isDownloaded(java.lang.String mediaId)
Returns if the media associated with the provided mediaId is downloaded
-
getDownloadedPlaylistItem
@Nullable PlaylistItem getDownloadedPlaylistItem(java.lang.String mediaId)
Returns the PlaylistItem to be used for setting up Offline DRM
-
-