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
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
containsUri
(Uri uri) Returns true ifuri
is present in the cache.abstract byte[]
Returns theencryptionKey
cached against thisuri
, or null ifuri
is null or not present in the cache.abstract byte[]
Inserts an entry into the cache.abstract byte[]
Removesuri
from the cache.
-
Constructor Details
-
HlsClearKeyCache
public HlsClearKeyCache()
-
-
Method Details
-
get
Returns theencryptionKey
cached against thisuri
, or null ifuri
is null or not present in the cache. -
put
Inserts an entry into the cache.- Throws:
NullPointerException
- ifuri
orencryptionKey
are null.
-
containsUri
Returns true ifuri
is present in the cache.- Throws:
NullPointerException
- ifuri
is null.
-
remove
Removesuri
from the cache. Ifuri
was present in the cahce, this returns the correspondingencryptionKey
, otherwise null.- Throws:
NullPointerException
- ifuri
is null.
-