ExoPlayerCacheProvider

To be implemented to provide ExoPlayer with caching ability.

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract fun getCache(publication: Publication): Cache?

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