Interface IMediaKeyStatusMap
interface IMediaKeyStatusMap
Extends com.amazon.apmf.IStandard
A read-only map of key IDs to the current status of the associated key
A key’s status is independent of whether the key is currently being used and of media data
For further details see
https://www.w3.org/TR/encrypted-media/#dom-mediakeystatusmap
Methods
getKeyIdList()
Gets all KeyIds present in the media key status map.ContentKeyId[]getKeyIdList()
Returns
ContentKeyId[]
The list of ContentKeyId
hasKey()
Checks if the ContentKeyId is present in the map.boolhasKey(ContentKeyIdcontentKeyId)
Parameters
contentKeyId
ContentKeyId — Required
The ContentKeyId that needs to be checked for.
Returns
bool
true if the contentKeyId is available in the map,
false otherwise
getKeyStatus()
Gets the key status identified by contentKeyId.MediaKeyStatusgetKeyStatus(ContentKeyIdcontentKeyId)
Parameters
contentKeyId
ContentKeyId — Required
The MediaKeyID instance.
Returns
MediaKeyStatus
the key status for the media key id.
getKeyCount()
i32 getKeyCount()
Gets the size of key-status map
Returns
i32
the number of keys in the status map

