public class ExoPlayerDrmSessionManager<T extends com.google.android.exoplayer2.drm.ExoMediaCrypto> extends com.google.android.exoplayer2.drm.DefaultDrmSessionManager<T> implements DrmSession<T>
DrmSessionManager
that supports offline playback of DRM restricted content
using MediaDrm
.
Constructor and Description |
---|
ExoPlayerDrmSessionManager(java.util.UUID uuid,
com.google.android.exoplayer2.drm.ExoMediaDrm<T> mediaDrm,
com.google.android.exoplayer2.drm.MediaDrmCallback callback,
java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters,
android.os.Handler eventHandler,
com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener defaultDrmSessionEventListener) |
Modifier and Type | Method and Description |
---|---|
DrmException |
getDrmError()
Deprecated.
|
byte[] |
getOfflineLicenseKeySetId()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
queryKeyStatus()
Deprecated.
|
acquireSession, addListener, canAcquireSession, getPropertyByteArray, getPropertyString, newFrameworkInstance, newPlayReadyInstance, newWidevineInstance, onProvisionCompleted, onProvisionError, provisionRequired, releaseSession, removeListener, setMode, setPropertyByteArray, setPropertyString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyByteArray, getPropertyString, setPropertyByteArray, setPropertyString
public ExoPlayerDrmSessionManager(java.util.UUID uuid, com.google.android.exoplayer2.drm.ExoMediaDrm<T> mediaDrm, com.google.android.exoplayer2.drm.MediaDrmCallback callback, java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters, android.os.Handler eventHandler, com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener defaultDrmSessionEventListener)
uuid
- The UUID of the drm scheme.mediaDrm
- An underlying ExoMediaDrm
for use by the manager.callback
- Performs key and provisioning requests.optionalKeyRequestParameters
- An optional map of parameters to pass as the last argument
to MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap)
. May be null.eventHandler
- A handler to use when delivering events to eventListener
. May be
null if delivery of events is not required.defaultDrmSessionEventListener
- A listener of events. May be null if delivery of events is not required.@Deprecated public final DrmException getDrmError()
getDrmError
in interface BrightcoveDrmSession
@Deprecated public java.util.Map<java.lang.String,java.lang.String> queryKeyStatus()
queryKeyStatus
in interface BrightcoveDrmSession
@Deprecated public byte[] getOfflineLicenseKeySetId()
getOfflineLicenseKeySetId
in interface BrightcoveDrmSession