Class ExoPlayerDrmSessionManager

  • All Implemented Interfaces:
    BrightcoveDrmSession, DrmSession

    public class ExoPlayerDrmSessionManager
    extends java.lang.Object
    implements DrmSession
    A DrmSessionManager that supports offline playback of DRM restricted content using MediaDrm.

    • 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 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.
    • 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()
      • queryKeyStatus

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> queryKeyStatus()
        Deprecated.
        Specified by:
        queryKeyStatus in interface BrightcoveDrmSession
      • getPropertyString

        public java.lang.String getPropertyString​(java.lang.String propertyName)
        Specified by:
        getPropertyString in interface BrightcoveDrmSession
        See Also:
        MediaDrm.getPropertyString(String)
      • getPropertyByteArray

        public byte[] getPropertyByteArray​(java.lang.String propertyName)
        Specified by:
        getPropertyByteArray in interface BrightcoveDrmSession
        See Also:
        MediaDrm.getPropertyByteArray(String)
      • setPropertyString

        public void setPropertyString​(java.lang.String propertyName,
                                      java.lang.String value)
        Specified by:
        setPropertyString in interface BrightcoveDrmSession
        See Also:
        MediaDrm.setPropertyString(String, String)
      • setPropertyByteArray

        public void setPropertyByteArray​(java.lang.String propertyName,
                                         byte[] value)
        Specified by:
        setPropertyByteArray in interface BrightcoveDrmSession
        See Also:
        MediaDrm.setPropertyByteArray(String, byte[])
      • getSourceProperties

        public java.util.Map<java.lang.String,​java.lang.String> getSourceProperties()