public final class ErrorStateDrmSession<T extends ExoMediaCrypto> extends java.lang.Object implements DrmSession<T>
DrmSession that's in a terminal error state.DrmSession.DrmSessionException, DrmSession.StateSTATE_ERROR, STATE_OPENED, STATE_OPENED_WITH_KEYS, STATE_OPENING, STATE_RELEASED| Constructor and Description |
|---|
ErrorStateDrmSession(DrmSession.DrmSessionException error) |
| Modifier and Type | Method and Description |
|---|---|
DrmSession.DrmSessionException |
getError()
Returns the cause of the error state.
|
T |
getMediaCrypto()
Returns a
ExoMediaCrypto for the open session, or null if called before the session has
been opened or after it's been released. |
byte[] |
getOfflineLicenseKeySetId()
Returns the key set id of the offline license loaded into this session, or null if there isn't
one.
|
int |
getState()
Returns the current state of the session, which is one of
DrmSession.STATE_ERROR,
DrmSession.STATE_RELEASED, DrmSession.STATE_OPENING, DrmSession.STATE_OPENED and
DrmSession.STATE_OPENED_WITH_KEYS. |
java.util.Map<java.lang.String,java.lang.String> |
queryKeyStatus()
Returns a map describing the key status for the session, or null if called before the session
has been opened or after it's been released.
|
public ErrorStateDrmSession(DrmSession.DrmSessionException error)
public int getState()
DrmSessionDrmSession.STATE_ERROR,
DrmSession.STATE_RELEASED, DrmSession.STATE_OPENING, DrmSession.STATE_OPENED and
DrmSession.STATE_OPENED_WITH_KEYS.getState in interface DrmSession<T extends ExoMediaCrypto>public DrmSession.DrmSessionException getError()
DrmSessiongetError in interface DrmSession<T extends ExoMediaCrypto>public T getMediaCrypto()
DrmSessionExoMediaCrypto for the open session, or null if called before the session has
been opened or after it's been released.getMediaCrypto in interface DrmSession<T extends ExoMediaCrypto>public java.util.Map<java.lang.String,java.lang.String> queryKeyStatus()
DrmSessionSince DRM license policies vary by vendor, the specific status field names are determined by each DRM vendor. Refer to your DRM provider documentation for definitions of the field names for a particular DRM engine plugin.
queryKeyStatus in interface DrmSession<T extends ExoMediaCrypto>MediaDrm.queryKeyStatus(byte[])public byte[] getOfflineLicenseKeySetId()
DrmSessiongetOfflineLicenseKeySetId in interface DrmSession<T extends ExoMediaCrypto>