Package com.brightcove.player.offline
Class ExternalFileCreator
- java.lang.Object
-
- com.brightcove.player.offline.ExternalFileCreator
-
- All Implemented Interfaces:
DownloadFileCreator
public class ExternalFileCreator extends java.lang.Object implements DownloadFileCreator
Retrieves the externalEnvironment.DIRECTORY_DOWNLOADS
. Returns null in case there is no external directory available.
-
-
Constructor Summary
Constructors Constructor Description ExternalFileCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getDownloadsFolder(android.content.Context context)
Retrieves the downloads directory used to store videos for Offline-Playback.
-
-
-
Method Detail
-
getDownloadsFolder
@Nullable public java.io.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 interfaceDownloadFileCreator
- Parameters:
context
- validContext
.- Returns:
- File path with the directory to store offline videos.
- See Also:
AbstractOfflineCatalog.downloadVideo(Video)
-
-