ExoPlayerCache

object ExoPlayerCache

A convenient object to help creating and reusing a Cache for the media content. It supports a lruCacheSingleton which is a SimpleCache that uses the LeastRecentlyUsedCacheEvictor internally, and a downloadCacheSingleton which is a SimpleCache that doesn't evict cache, which is useful to store downloaded content.

Properties

Link copied to clipboard
val downloadCacheSingleton: Capsule<Cache, Context>

A reusable Cache that uses the NoOpCacheEvictor internally.

Link copied to clipboard
val lruCacheSingleton: Capsule<Cache, Context>

A reusable Cache that uses the LeastRecentlyUsedCacheEvictor internally.