@Deprecated public interface DrmSession<T extends com.google.android.exoplayer.drm.ExoMediaCrypto> extends BrightcoveDrmSession
Modifier and Type | Interface and Description |
---|---|
static class |
DrmSession.DrmSessionException
Deprecated.
Describes an error condition related to the
DrmSession |
Modifier and Type | Method and Description |
---|---|
DrmSession.DrmSessionException |
getError()
Deprecated.
Returns the cause of the error state.
|
T |
getMediaCrypto()
Deprecated.
Provides reference to the current DRM session.
|
byte[] |
getOfflineLicenseKeySetId()
Deprecated.
Returns the key set id of the offline license loaded into this session, if there is one.
|
int |
getState()
Deprecated.
Returns the current state of the session.
|
java.util.Map<java.lang.String,java.lang.String> |
queryKeyStatus()
Deprecated.
Returns an informative description of the key status for the session.
|
boolean |
requiresSecureDecoderComponent(java.lang.String mimeType)
Deprecated.
Whether the session requires a secure decoder for the specified mime type.
|
getDrmError, getPropertyByteArray, getPropertyString, setPropertyByteArray, setPropertyString
int getState()
DrmSessionManager.STATE_ERROR
,
DrmSessionManager.STATE_CLOSED
,
DrmSessionManager.STATE_OPENING
,
DrmSessionManager.STATE_OPENED
or
DrmSessionManager.STATE_OPENED_WITH_KEYS
.T getMediaCrypto()
This method may be called when the session is in the following states:
DrmSessionManager.STATE_OPENED
,
DrmSessionManager.STATE_OPENED_WITH_KEYS
ExoMediaCrypto
for the open session.java.lang.IllegalStateException
- If called when a session isn't opened.boolean requiresSecureDecoderComponent(java.lang.String mimeType)
Normally this method should return
ExoMediaCrypto.requiresSecureDecoderComponent(String)
, however in some cases
implementations may wish to modify the return value (i.e. to force a secure decoder even when
one is not required).
This method may be called when the session is in the following states:
DrmSessionManager.STATE_OPENED
,
DrmSessionManager.STATE_OPENED_WITH_KEYS
java.lang.IllegalStateException
- If called when a session isn't opened.DrmSession.DrmSessionException getError()
This method may be called when the session is in any state.
DrmSessionManager.STATE_ERROR
. Null otherwise.java.util.Map<java.lang.String,java.lang.String> queryKeyStatus()
Since 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 BrightcoveDrmSession
java.lang.IllegalStateException
- If called when the session isn't opened.MediaDrm#queryKeyStatus(byte[])
byte[] getOfflineLicenseKeySetId()
getOfflineLicenseKeySetId
in interface BrightcoveDrmSession