DefaultDownloaderFactory
@UnstableApi
public class DefaultDownloaderFactory implements DownloaderFactory
Default DownloaderFactory, supporting creation of progressive, DASH, HLS and SmoothStreaming downloaders. Note that for the latter three, the corresponding library module must be built into the application.
Summary
Public constructors |
|---|
This method is deprecated. |
DefaultDownloaderFactory(Creates an instance. |
Public methods |
|
|---|---|
Downloader |
createDownloader(DownloadRequest request)Creates a |
Public constructors
DefaultDownloaderFactory
publicDefaultDownloaderFactory(
CacheDataSource.Factory cacheDataSourceFactory
)
Creates an instance.
| Parameters | |
|---|---|
CacheDataSource.Factory cacheDataSourceFactory |
A |
DefaultDownloaderFactory
public DefaultDownloaderFactory(
CacheDataSource.Factory cacheDataSourceFactory,
Executor executor
)
Creates an instance.
| Parameters | |
|---|---|
CacheDataSource.Factory cacheDataSourceFactory |
A |
Executor executor |
An |
Public methods
createDownloader
public Downloader createDownloader(DownloadRequest request)
Creates a Downloader to perform the given DownloadRequest.
| Parameters | |
|---|---|
DownloadRequest request |
The download request. |
| Returns | |
|---|---|
Downloader |
The downloader. |