Java Code Examples for com.google.android.exoplayer2.upstream.DataSink#Factory
The following examples show how to use
com.google.android.exoplayer2.upstream.DataSink#Factory .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CacheDataSourceFactory.java From MediaSDK with Apache License 2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, flags, eventListener, /* cacheKeyFactory= */ null); }
Example 2
Source File: CacheDataSourceFactory.java From MediaSDK with Apache License 2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener, CacheKeyFactory) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener, @Nullable CacheKeyFactory cacheKeyFactory) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; this.cacheKeyFactory = cacheKeyFactory; }
Example 3
Source File: CacheDataSourceFactory.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, flags, eventListener, /* cacheKeyFactory= */ null); }
Example 4
Source File: CacheDataSourceFactory.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener, CacheKeyFactory) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener, @Nullable CacheKeyFactory cacheKeyFactory) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; this.cacheKeyFactory = cacheKeyFactory; }
Example 5
Source File: CacheDataSourceFactory.java From Telegram with GNU General Public License v2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, flags, eventListener, /* cacheKeyFactory= */ null); }
Example 6
Source File: CacheDataSourceFactory.java From Telegram with GNU General Public License v2.0 | 6 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * CacheDataSource.EventListener, CacheKeyFactory) */ public CacheDataSourceFactory( Cache cache, DataSource.Factory upstreamFactory, DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, @Nullable CacheDataSource.EventListener eventListener, @Nullable CacheKeyFactory cacheKeyFactory) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; this.cacheKeyFactory = cacheKeyFactory; }
Example 7
Source File: DownloaderConstructorHelper.java From MediaSDK with Apache License 2.0 | 5 votes |
/** * @param cache Cache instance to be used to store downloaded data. * @param upstreamFactory A {@link DataSource.Factory} for creating {@link DataSource}s for * downloading data. * @param cacheReadDataSourceFactory A {@link DataSource.Factory} for creating {@link DataSource}s * for reading data from the cache. If null then a {@link FileDataSource.Factory} will be * used. * @param cacheWriteDataSinkFactory A {@link DataSink.Factory} for creating {@link DataSource}s * for writing data to the cache. If null then a {@link CacheDataSinkFactory} will be used. * @param priorityTaskManager A {@link PriorityTaskManager} to use when downloading. If non-null, * downloaders will register as tasks with priority {@link C#PRIORITY_DOWNLOAD} whilst * downloading. */ public DownloaderConstructorHelper( Cache cache, DataSource.Factory upstreamFactory, @Nullable DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @Nullable PriorityTaskManager priorityTaskManager) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, priorityTaskManager, /* cacheKeyFactory= */ null); }
Example 8
Source File: DownloaderConstructorHelper.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @param cache Cache instance to be used to store downloaded data. * @param upstreamDataSourceFactory A {@link Factory} for downloading data. * @param cacheReadDataSourceFactory A {@link Factory} for reading data from the cache. If null * then standard {@link FileDataSource} instances will be used. * @param cacheWriteDataSinkFactory A {@link DataSink.Factory} for writing data to the cache. If * null then standard {@link CacheDataSink} instances will be used. * @param priorityTaskManager A {@link PriorityTaskManager} to use when downloading. If non-null, * downloaders will register as tasks with priority {@link C#PRIORITY_DOWNLOAD} whilst * downloading. */ public DownloaderConstructorHelper( Cache cache, Factory upstreamDataSourceFactory, @Nullable Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @Nullable PriorityTaskManager priorityTaskManager) { Assertions.checkNotNull(upstreamDataSourceFactory); this.cache = cache; this.upstreamDataSourceFactory = upstreamDataSourceFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.priorityTaskManager = priorityTaskManager; }
Example 9
Source File: CacheDataSourceFactory.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * EventListener) */ public CacheDataSourceFactory(Cache cache, Factory upstreamFactory, Factory cacheReadDataSourceFactory, DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, EventListener eventListener) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; }
Example 10
Source File: DownloaderConstructorHelper.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @param cache Cache instance to be used to store downloaded data. * @param upstreamDataSourceFactory A {@link Factory} for downloading data. * @param cacheReadDataSourceFactory A {@link Factory} for reading data from the cache. If null * then standard {@link FileDataSource} instances will be used. * @param cacheWriteDataSinkFactory A {@link DataSink.Factory} for writing data to the cache. If * null then standard {@link CacheDataSink} instances will be used. * @param priorityTaskManager A {@link PriorityTaskManager} to use when downloading. If non-null, * downloaders will register as tasks with priority {@link C#PRIORITY_DOWNLOAD} whilst * downloading. */ public DownloaderConstructorHelper( Cache cache, Factory upstreamDataSourceFactory, @Nullable Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @Nullable PriorityTaskManager priorityTaskManager) { Assertions.checkNotNull(upstreamDataSourceFactory); this.cache = cache; this.upstreamDataSourceFactory = upstreamDataSourceFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.priorityTaskManager = priorityTaskManager; }
Example 11
Source File: CacheDataSourceFactory.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * EventListener) */ public CacheDataSourceFactory(Cache cache, Factory upstreamFactory, Factory cacheReadDataSourceFactory, DataSink.Factory cacheWriteDataSinkFactory, @CacheDataSource.Flags int flags, EventListener eventListener) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; }
Example 12
Source File: CacheDataSourceFactory.java From K-Sonic with MIT License | 5 votes |
/** * @see CacheDataSource#CacheDataSource(Cache, DataSource, DataSource, DataSink, int, * EventListener) */ public CacheDataSourceFactory(Cache cache, Factory upstreamFactory, Factory cacheReadDataSourceFactory, DataSink.Factory cacheWriteDataSinkFactory, int flags, EventListener eventListener) { this.cache = cache; this.upstreamFactory = upstreamFactory; this.cacheReadDataSourceFactory = cacheReadDataSourceFactory; this.cacheWriteDataSinkFactory = cacheWriteDataSinkFactory; this.flags = flags; this.eventListener = eventListener; }
Example 13
Source File: DownloaderConstructorHelper.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
/** * @param cache Cache instance to be used to store downloaded data. * @param upstreamFactory A {@link DataSource.Factory} for creating {@link DataSource}s for * downloading data. * @param cacheReadDataSourceFactory A {@link DataSource.Factory} for creating {@link DataSource}s * for reading data from the cache. If null then a {@link FileDataSourceFactory} will be used. * @param cacheWriteDataSinkFactory A {@link DataSink.Factory} for creating {@link DataSource}s * for writing data to the cache. If null then a {@link CacheDataSinkFactory} will be used. * @param priorityTaskManager A {@link PriorityTaskManager} to use when downloading. If non-null, * downloaders will register as tasks with priority {@link C#PRIORITY_DOWNLOAD} whilst * downloading. */ public DownloaderConstructorHelper( Cache cache, DataSource.Factory upstreamFactory, @Nullable DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @Nullable PriorityTaskManager priorityTaskManager) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, priorityTaskManager, /* cacheKeyFactory= */ null); }
Example 14
Source File: DownloaderConstructorHelper.java From Telegram with GNU General Public License v2.0 | 5 votes |
/** * @param cache Cache instance to be used to store downloaded data. * @param upstreamFactory A {@link DataSource.Factory} for creating {@link DataSource}s for * downloading data. * @param cacheReadDataSourceFactory A {@link DataSource.Factory} for creating {@link DataSource}s * for reading data from the cache. If null then a {@link FileDataSourceFactory} will be used. * @param cacheWriteDataSinkFactory A {@link DataSink.Factory} for creating {@link DataSource}s * for writing data to the cache. If null then a {@link CacheDataSinkFactory} will be used. * @param priorityTaskManager A {@link PriorityTaskManager} to use when downloading. If non-null, * downloaders will register as tasks with priority {@link C#PRIORITY_DOWNLOAD} whilst * downloading. */ public DownloaderConstructorHelper( Cache cache, DataSource.Factory upstreamFactory, @Nullable DataSource.Factory cacheReadDataSourceFactory, @Nullable DataSink.Factory cacheWriteDataSinkFactory, @Nullable PriorityTaskManager priorityTaskManager) { this( cache, upstreamFactory, cacheReadDataSourceFactory, cacheWriteDataSinkFactory, priorityTaskManager, /* cacheKeyFactory= */ null); }