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 SummaryConstructors
- 
Method SummaryModifier 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- 
HlsClearKeyCachepublic HlsClearKeyCache()
 
- 
- 
Method Details- 
getReturns theencryptionKeycached against thisuri, or null ifuriis null or not present in the cache.
- 
putInserts an entry into the cache.- Throws:
- NullPointerException- if- urior- encryptionKeyare null.
 
- 
containsUriReturns true ifuriis present in the cache.- Throws:
- NullPointerException- if- uriis null.
 
- 
removeRemovesurifrom the cache. Ifuriwas present in the cahce, this returns the correspondingencryptionKey, otherwise null.- Throws:
- NullPointerException- if- uriis null.
 
 
-