DefaultExoPlayerCacheProvider

Uses the given cache only for remote publications and URLs resolved against the publication base URL as cache keys.

Constructors

Link copied to clipboard
constructor(cache: Cache)

Functions

Link copied to clipboard
open override fun computeKey(publication: Publication, url: Url): String

Computes a unique cache key for the resource of publication at url . It can be an absolute URL or a mix of url with some publication identifier.

Link copied to clipboard
open override fun getCache(publication: Publication): Cache?

Returns the cache to use or null if caching is not necessary with the given publication.