public static final class MediaDrm.KeyStatus extends Object
MediaDrm.OnKeyStatusChangeListener.onKeyStatusChange(android.media.MediaDrm, byte[], java.util.List<android.media.MediaDrm.KeyStatus>, boolean)
listener.Modifier and Type | Class and Description |
---|---|
static interface |
MediaDrm.KeyStatus.KeyStatusCode |
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_EXPIRED
The key is no longer usable to decrypt media data because its
expiration time has passed.
|
static 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.
|
static int |
STATUS_OUTPUT_NOT_ALLOWED
The key is not currently usable to decrypt media data because its
output requirements cannot currently be met.
|
static int |
STATUS_PENDING
The status of the key is not yet known and is being determined.
|
static int |
STATUS_USABLE
The key is currently usable to decrypt media data
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getKeyId()
Returns the id for the key
|
int |
getStatusCode()
Returns the status code for the key
|
public static final int STATUS_USABLE
public static final int STATUS_EXPIRED
public static final int STATUS_OUTPUT_NOT_ALLOWED
public static final int STATUS_PENDING
public static final int STATUS_INTERNAL_ERROR
public int getStatusCode()
STATUS_USABLE
, STATUS_EXPIRED
,
STATUS_OUTPUT_NOT_ALLOWED
, STATUS_PENDING
or STATUS_INTERNAL_ERROR
.public byte[] getKeyId()