Class ExternalFileCreator

java.lang.Object
com.brightcove.player.offline.ExternalFileCreator
All Implemented Interfaces:
DownloadFileCreator

public class ExternalFileCreator extends Object implements DownloadFileCreator
Retrieves the external Environment.DIRECTORY_DOWNLOADS. Returns null in case there is no external directory available.
  • Constructor Details

    • ExternalFileCreator

      public ExternalFileCreator()
  • Method Details

    • getDownloadsFolder

      @Nullable public File getDownloadsFolder(@NonNull android.content.Context context)
      Retrieves the downloads directory used to store videos for Offline-Playback. In case the File returned has null value, it won't be possible to store/download videos or offline information.
      Specified by:
      getDownloadsFolder in interface DownloadFileCreator
      Parameters:
      context - valid Context.
      Returns:
      File path with the directory to store offline videos.
      See Also: