java.lang.Object | |
↳ | android.media.MediaDrm.KeyStatus |
Defines the status of a key.
A KeyStatus for each key in a session is provided to the
onKeyStatusChange(MediaDrm, byte[], List
listener.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATUS_EXPIRED | The key is no longer usable to decrypt media data because its expiration time has passed. | |||||||||
int | STATUS_INTERNAL_ERROR | The key is not currently usable to decrypt media data because of an internal error in processing unrelated to input parameters. | |||||||||
int | STATUS_OUTPUT_NOT_ALLOWED | The key is not currently usable to decrypt media data because its output requirements cannot currently be met. | |||||||||
int | STATUS_PENDING | The status of the key is not yet known and is being determined. | |||||||||
int | STATUS_USABLE | The key is currently usable to decrypt media data |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the id for the key
| |||||||||||
Returns the status code for the key
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The key is no longer usable to decrypt media data because its expiration time has passed.
The key is not currently usable to decrypt media data because of an internal error in processing unrelated to input parameters. This error is not actionable by an app.
The key is not currently usable to decrypt media data because its output requirements cannot currently be met.
The status of the key is not yet known and is being determined. The status will be updated with the actual status when it has been determined.
The key is currently usable to decrypt media data