Package com.google.android.exoplayer2.drm
-
Interface Summary Interface Description DrmSession A DRM session.DrmSessionEventListener Listener ofDrmSessionManager
events.DrmSessionManager Manages a DRM session.DrmSessionManager.DrmSessionReference Represents a single reference count of aDrmSession
, while deliberately not giving access to the underlying session.DrmSessionManagerProvider A provider to obtain aDrmSessionManager
suitable for playing the content described by aMediaItem
.ExoMediaDrm Used to obtain keys for decrypting protected media streams.ExoMediaDrm.OnEventListener Called when a DRM event occurs.ExoMediaDrm.OnExpirationUpdateListener Called when a session expiration update occurs.ExoMediaDrm.OnKeyStatusChangeListener Called when the keys in a DRM session change state.ExoMediaDrm.Provider Provider forExoMediaDrm
instances.MediaDrmCallback PerformsExoMediaDrm
key and provisioning requests. -
Class Summary Class Description DefaultDrmSessionManager ADrmSessionManager
that supports playbacks usingExoMediaDrm
.DefaultDrmSessionManager.Builder Builder forDefaultDrmSessionManager
instances.DefaultDrmSessionManagerProvider Default implementation ofDrmSessionManagerProvider
.DrmInitData Initialization data for one or more DRM schemes.DrmInitData.SchemeData Scheme initialization data.DrmSessionEventListener.EventDispatcher Dispatches events toDrmSessionEventListeners
.DrmUtil DRM-related utility methods.DummyExoMediaDrm AnExoMediaDrm
that does not support any protection schemes.ErrorStateDrmSession ADrmSession
that's in a terminal error state.ExoMediaDrm.AppManagedProvider Provides anExoMediaDrm
instance owned by the app.ExoMediaDrm.KeyRequest Contains data used to request keys from a license server.ExoMediaDrm.KeyStatus Defines the status of a key.ExoMediaDrm.ProvisionRequest Contains data to request a certificate from a provisioning server.FrameworkCryptoConfig FrameworkMediaDrm AnExoMediaDrm
implementation that wraps the frameworkMediaDrm
.HttpMediaDrmCallback AMediaDrmCallback
that makes requests usingHttpDataSource
instances.LocalMediaDrmCallback AMediaDrmCallback
that provides a fixed response to key requests.OfflineLicenseHelper Helper class to download, renew and release offline licenses.WidevineUtil Utility methods for Widevine. -
Exception Summary Exception Description DefaultDrmSessionManager.MissingSchemeDataException Signals that theFormat.drmInitData
passed toDefaultDrmSessionManager.acquireSession(com.google.android.exoplayer2.drm.DrmSessionEventListener.EventDispatcher, com.google.android.exoplayer2.Format)
does not contain scheme data for the required UUID.DrmSession.DrmSessionException Wraps the throwable which is the cause of the error state.KeysExpiredException Thrown when the drm keys loaded into an open session expire.MediaDrmCallbackException Thrown when an error occurs while executing a DRMkey
orprovisioning
request.UnsupportedDrmException Thrown when the requested DRM scheme is not supported. -
Annotation Types Summary Annotation Type Description DefaultDrmSessionManager.Mode Determines the action to be done after a session acquired.DrmSession.State The state of the DRM session.DrmUtil.ErrorSource Identifies the operation which caused a DRM-related error.ExoMediaDrm.KeyRequest.RequestType Key request types.UnsupportedDrmException.Reason The reason for the exception.