chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size (#3739)
This commit is contained in:
@@ -15,7 +15,7 @@ object RNVSimpleCache {
|
||||
var cacheDataSourceFactory: DataSource.Factory? = null
|
||||
|
||||
fun setSimpleCache(context: Context, cacheSize: Int, factory: HttpDataSource.Factory) {
|
||||
if (cacheDataSourceFactory != null || cacheSize == 0) return
|
||||
if (cacheDataSourceFactory != null || cacheSize <= 0) return
|
||||
simpleCache = SimpleCache(
|
||||
File(context.cacheDir, "RNVCache"),
|
||||
LeastRecentlyUsedCacheEvictor(
|
||||
|
||||
Reference in New Issue
Block a user