Interface CacheKeyFactory
-
@Deprecated public interface CacheKeyFactory
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Factory for cache keys.
-
-
Field Summary
Fields Modifier and Type Field Description static CacheKeyFactoryDEFAULTDeprecated.DefaultCacheKeyFactory.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringbuildCacheKey(DataSpec dataSpec)Deprecated.Returns the cache key of the resource containing the data defined by aDataSpec.
-
-
-
Field Detail
-
DEFAULT
static final CacheKeyFactory DEFAULT
Deprecated.DefaultCacheKeyFactory.
-
-
Method Detail
-
buildCacheKey
String buildCacheKey(DataSpec dataSpec)
Deprecated.Returns the cache key of the resource containing the data defined by aDataSpec.Note that since the returned cache key corresponds to the whole resource, implementations must not return different cache keys for
DataSpecsthat define different ranges of the same resource. As a result, implementations should not use fields such asDataSpec.positionandDataSpec.length.- Parameters:
dataSpec- TheDataSpec.- Returns:
- The cache key of the resource.
-
-