Package com.castlabs.android.player
Class HlsClearKeyCache
- java.lang.Object
-
- com.castlabs.android.player.HlsClearKeyCache
-
- Direct Known Subclasses:
MemoryHlsClearKeyCache
public abstract class HlsClearKeyCache extends Object
Cache forDrm.Clearkey.Can be
gottenorPlayerController.setHlsKeyCache(HlsClearKeyCache)set} in the PlayerController.- See Also:
MemoryHlsClearKeyCache
-
-
Constructor Summary
Constructors Constructor Description HlsClearKeyCache()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleancontainsUri(Uri uri)Returns true ifuriis present in the cache.abstract byte[]get(Uri uri)Returns theencryptionKeycached against thisuri, or null ifuriis null or not present in the cache.abstract byte[]put(Uri uri, byte[] encryptionKey)Inserts an entry into the cache.abstract byte[]remove(Uri uri)Removesurifrom the cache.
-
-
-
Method Detail
-
get
@Nullable public abstract byte[] get(@Nullable Uri uri)Returns theencryptionKeycached against thisuri, or null ifuriis null or not present in the cache.
-
put
@Nullable public abstract byte[] put(@NonNull Uri uri, @NonNull byte[] encryptionKey)Inserts an entry into the cache.- Throws:
NullPointerException- ifuriorencryptionKeyare null.
-
containsUri
public abstract boolean containsUri(@NonNull Uri uri)Returns true ifuriis present in the cache.- Throws:
NullPointerException- ifuriis null.
-
remove
@Nullable public abstract byte[] remove(@NonNull Uri uri)Removesurifrom the cache. Ifuriwas present in the cahce, this returns the correspondingencryptionKey, otherwise null.- Throws:
NullPointerException- ifuriis null.
-
-