Package com.brightcove.player.drm
Class ExoPlayerDrmSessionManager
java.lang.Object
com.brightcove.player.drm.ExoPlayerDrmSessionManager
- All Implemented Interfaces:
BrightcoveDrmSession
,DrmSession
A
DrmSessionManager
that supports offline playback of DRM restricted content
using MediaDrm
.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionExoPlayerDrmSessionManager
(UUID uuid, com.google.android.exoplayer2.drm.ExoMediaDrm.Provider mediaDrm, com.google.android.exoplayer2.drm.MediaDrmCallback callback, HashMap<String, String> optionalKeyRequestParameters) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.com.google.android.exoplayer2.drm.DefaultDrmSessionManager
com.google.android.exoplayer2.drm.DrmSessionManagerProvider
com.google.android.exoplayer2.drm.MediaDrmCallback
byte[]
Deprecated.byte[]
getPropertyByteArray
(String propertyName) getPropertyString
(String propertyName) Deprecated.void
setMode
(int mode, byte[] playbackLicense) void
setPropertyByteArray
(String propertyName, byte[] value) void
setPropertyString
(String propertyName, String value)
-
Constructor Details
-
ExoPlayerDrmSessionManager
@Deprecated public ExoPlayerDrmSessionManager(UUID uuid, com.google.android.exoplayer2.drm.ExoMediaDrm.Provider mediaDrm, com.google.android.exoplayer2.drm.MediaDrmCallback callback, HashMap<String, 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 Details
-
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.- Specified by:
getDrmError
in interfaceBrightcoveDrmSession
-
queryKeyStatus
Deprecated.- Specified by:
queryKeyStatus
in interfaceBrightcoveDrmSession
-
getOfflineLicenseKeySetId
Deprecated.- Specified by:
getOfflineLicenseKeySetId
in interfaceBrightcoveDrmSession
-
getPropertyString
- Specified by:
getPropertyString
in interfaceBrightcoveDrmSession
- See Also:
-
MediaDrm.getPropertyString(String)
-
getPropertyByteArray
- Specified by:
getPropertyByteArray
in interfaceBrightcoveDrmSession
- See Also:
-
MediaDrm.getPropertyByteArray(String)
-
setPropertyString
- Specified by:
setPropertyString
in interfaceBrightcoveDrmSession
- See Also:
-
MediaDrm.setPropertyString(String, String)
-
setPropertyByteArray
- Specified by:
setPropertyByteArray
in interfaceBrightcoveDrmSession
- See Also:
-
MediaDrm.setPropertyByteArray(String, byte[])
-
getSourceProperties
-