get method
Returns the MediaKeyStatus of the key identified by keyId.
Syntax
var MediaKeyStatus = MediaKeyStatusMap.get(keyId);Parameters
- keyId
-
Type: BufferSource
The key ID of the key.
Return value
Type: MediaKeyStatus
Returns MediaKeyStatus
Standards information
Remarks
MediaKeyStatus enumeration description:
| Name | Description |
|---|---|
| usable | The CDM is certain the key is currently usable to decrypt media data. |
| expired | The key is no longer usable to decrypt the media data because its expiration time has passed. |
| released | The key itself is no longer available to the CDM, but information about they key is available. |
| output-restricted | There are output restrictions associated with the key that cannot currently be met. Media data decrypted with this key may be blocked form presentation. |
| output-downscaled | There are output restrictions associated with the key that cannot currently be met. Media data decrypted with this key may be presented at a lower resolution. |
| status-pending | The status of the key is not yet known and is being determined. |
| internal-error | The key is not currently usable to decrypt media data because of an error in the CDM unrelated to the other values. |
See also
Show: