Package com.castlabs.android.player
Class HlsClearKeyCache
java.lang.Object
com.castlabs.android.player.HlsClearKeyCache
- Direct Known Subclasses:
MemoryHlsClearKeyCache
Cache for
Drm.Clearkey.
Can be gotten or PlayerController.setHlsKeyCache(HlsClearKeyCache) set}
in the PlayerController.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancontainsUri(Uri uri) Returns true ifuriis present in the cache.abstract byte[]Returns theencryptionKeycached against thisuri, or null ifuriis null or not present in the cache.abstract byte[]Inserts an entry into the cache.abstract byte[]Removesurifrom the cache.
-
Constructor Details
-
HlsClearKeyCache
public HlsClearKeyCache()
-
-
Method Details
-
get
Returns theencryptionKeycached against thisuri, or null ifuriis null or not present in the cache. -
put
Inserts an entry into the cache.- Throws:
NullPointerException- ifuriorencryptionKeyare null.
-
containsUri
Returns true ifuriis present in the cache.- Throws:
NullPointerException- ifuriis null.
-
remove
Removesurifrom the cache. Ifuriwas present in the cahce, this returns the correspondingencryptionKey, otherwise null.- Throws:
NullPointerException- ifuriis null.
-