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:

NameDescription
usableThe CDM is certain the key is currently usable to decrypt media data.
expiredThe key is no longer usable to decrypt the media data because its expiration time has passed.
releasedThe key itself is no longer available to the CDM, but information about they key is available.
output-restrictedThere are output restrictions associated with the key that cannot currently be met. Media data decrypted with this key may be blocked form presentation.
output-downscaledThere 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-pendingThe status of the key is not yet known and is being determined.
internal-errorThe key is not currently usable to decrypt media data because of an error in the CDM unrelated to the other values.

 

See also

MediaKeyStatusMap

 

 

Show: