Interface OfflineDownloadManager


public interface OfflineDownloadManager
  • Method Details

    • prepareMediaDownload

      void prepareMediaDownload(Context context, PlaylistItem item)
      Prepares a download for the provided PlaylistItem and notifies the listener as updates become available
    • setMediaDownloadResultListener

      void setMediaDownloadResultListener(MediaDownloadResultListener listener)
      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

      Set<String> getAllDownloads()
      Returns a Set of all downloaded mediaIDs
    • startService

      void startService(Context context)
      Starts the Download Service
    • removeDownload

      void removeDownload(Context context, String mediaId)
      Removes the provided download from memory
    • isDownloaded

      boolean isDownloaded(String mediaId)
      Returns if the media associated with the provided mediaId is downloaded
    • getDownloadedPlaylistItem

      PlaylistItem getDownloadedPlaylistItem(String mediaId)
      Returns the PlaylistItem to be used for setting up Offline DRM