pull/1298/head
gedoor 3 years ago
parent 942a27e07e
commit 5bb5cd9bd4
  1. 3
      app/src/main/java/io/legado/app/help/exoplayer/ExoPlayerHelper.kt

@ -25,7 +25,6 @@ object ExoPlayerHelper {
cacheDataSourceFactory.setDefaultRequestProperties(defaultRequestProperties) cacheDataSourceFactory.setDefaultRequestProperties(defaultRequestProperties)
) )
return mediaSourceFactory.createMediaSource(mediaItem) return mediaSourceFactory.createMediaSource(mediaItem)
} }
@ -37,7 +36,6 @@ object ExoPlayerHelper {
return@lazy OkhttpCacheDataSource.Factory() return@lazy OkhttpCacheDataSource.Factory()
.setCache(cache) .setCache(cache)
.setUpstreamDataSourceFactory(okhttpDataFactory) .setUpstreamDataSourceFactory(okhttpDataFactory)
} }
/** /**
@ -60,7 +58,6 @@ object ExoPlayerHelper {
//记录缓存的数据库 //记录缓存的数据库
databaseProvider databaseProvider
) )
} }
} }
Loading…
Cancel
Save