-1

Please help me. How to migrate exoplayer download manager data? I want to change download and cache keys. I use media3 lib, don`t see the api for this in SimpleCache and DownloadManager.

If you have any solution, please help me!

1 Answers1

0

You can check CacheKeyFactory interface. Provide your own CacheKeyFactory while creating CacheDataSource

CacheDataSource.Factory()
  .setCacheKeyFactory(CustomCacheKeyFactory())
  .build()
Sravan
  • 371
  • 1
  • 8
  • Sorry, but you don't understand my question. I need to migrate existing data. When i start the app, i want to change the keys. if i set setCacheKeyFactory the key comes new only for new cache data. – Mihail Chistousov Aug 18 '23 at 07:22