Exoplayer2-如何在缓存中下载和存储数据?预加载数据?

问题描述

Exoplayer没有有关将数据缓存和加载到播放器中的任何文档,因此很难找到一些好的教程。

这可以通过CacheUtil.cache完成,但我未能实现

任何人都可以了解CacheUtil.cache的任何文档吗?

我遇到了这个解决方案,但是它不再起作用了……

   LeastRecentlyUsedCacheEvictor evictor = new LeastRecentlyUsedCacheEvictor(90*1024*1024);
   ExoDatabaseProvider exoDatabaseProvider = new ExoDatabaseProvider(this);
   simpleCache = new SimpleCache(getCacheDir(),evictor,exoDatabaseProvider);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)