Package com.brightcove.player.drm
Class ExoPlayerDrmSessionManager
- java.lang.Object
-
- com.brightcove.player.drm.ExoPlayerDrmSessionManager
-
- All Implemented Interfaces:
BrightcoveDrmSession
,DrmSession
public class ExoPlayerDrmSessionManager extends java.lang.Object implements DrmSession
ADrmSessionManager
that supports offline playback of DRM restricted content usingMediaDrm
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExoPlayerDrmSessionManager.Builder
-
Constructor Summary
Constructors Constructor Description ExoPlayerDrmSessionManager(java.util.UUID uuid, com.google.android.exoplayer2.drm.ExoMediaDrm.Provider mediaDrm, com.google.android.exoplayer2.drm.MediaDrmCallback callback, java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DrmException
getDrmError()
Deprecated.com.google.android.exoplayer2.drm.DefaultDrmSessionManager
getDrmSessionManager()
com.google.android.exoplayer2.drm.DrmSessionManagerProvider
getDrmSessionManagerProvider()
com.google.android.exoplayer2.drm.MediaDrmCallback
getMediaDrmCallback()
byte[]
getOfflineLicenseKeySetId()
Deprecated.byte[]
getPropertyByteArray(java.lang.String propertyName)
java.lang.String
getPropertyString(java.lang.String propertyName)
java.util.Map<java.lang.String,java.lang.String>
getSourceProperties()
java.util.Map<java.lang.String,java.lang.String>
queryKeyStatus()
Deprecated.void
setMode(int mode, byte[] playbackLicense)
void
setPropertyByteArray(java.lang.String propertyName, byte[] value)
void
setPropertyString(java.lang.String propertyName, java.lang.String value)
-
-
-
Constructor Detail
-
ExoPlayerDrmSessionManager
@Deprecated public ExoPlayerDrmSessionManager(java.util.UUID uuid, com.google.android.exoplayer2.drm.ExoMediaDrm.Provider mediaDrm, com.google.android.exoplayer2.drm.MediaDrmCallback callback, java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters)
Deprecated.- Parameters:
uuid
- The UUID of the drm scheme.mediaDrm
- An underlyingExoMediaDrm
for use by the manager.callback
- Performs key and provisioning requests.optionalKeyRequestParameters
- An optional map of parameters to pass as the last argument toMediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap)
. May be null.
-
-
Method Detail
-
setMode
public void setMode(int mode, byte[] playbackLicense)
-
getDrmSessionManager
public com.google.android.exoplayer2.drm.DefaultDrmSessionManager getDrmSessionManager()
-
getMediaDrmCallback
public com.google.android.exoplayer2.drm.MediaDrmCallback getMediaDrmCallback()
-
getDrmSessionManagerProvider
public com.google.android.exoplayer2.drm.DrmSessionManagerProvider getDrmSessionManagerProvider()
-
getDrmError
@Deprecated public DrmException getDrmError()
Deprecated.- Specified by:
getDrmError
in interfaceBrightcoveDrmSession
-
queryKeyStatus
@Deprecated public java.util.Map<java.lang.String,java.lang.String> queryKeyStatus()
Deprecated.- Specified by:
queryKeyStatus
in interfaceBrightcoveDrmSession
-
getOfflineLicenseKeySetId
@Deprecated public byte[] getOfflineLicenseKeySetId()
Deprecated.- Specified by:
getOfflineLicenseKeySetId
in interfaceBrightcoveDrmSession
-
getPropertyString
public java.lang.String getPropertyString(java.lang.String propertyName)
- Specified by:
getPropertyString
in interfaceBrightcoveDrmSession
- See Also:
MediaDrm.getPropertyString(String)
-
getPropertyByteArray
public byte[] getPropertyByteArray(java.lang.String propertyName)
- Specified by:
getPropertyByteArray
in interfaceBrightcoveDrmSession
- See Also:
MediaDrm.getPropertyByteArray(String)
-
setPropertyString
public void setPropertyString(java.lang.String propertyName, java.lang.String value)
- Specified by:
setPropertyString
in interfaceBrightcoveDrmSession
- See Also:
MediaDrm.setPropertyString(String, String)
-
setPropertyByteArray
public void setPropertyByteArray(java.lang.String propertyName, byte[] value)
- Specified by:
setPropertyByteArray
in interfaceBrightcoveDrmSession
- See Also:
MediaDrm.setPropertyByteArray(String, byte[])
-
getSourceProperties
public java.util.Map<java.lang.String,java.lang.String> getSourceProperties()
-
-