Class FrameworkCryptoConfig
- java.lang.Object
-
- com.google.android.exoplayer2.drm.FrameworkCryptoConfig
-
- All Implemented Interfaces:
CryptoConfig
public final class FrameworkCryptoConfig extends Object implements CryptoConfig
ACryptoConfigforC.CRYPTO_TYPE_FRAMEWORK. Contains the necessary information to build or update a frameworkMediaCryptothat can be used to configure aMediaCodec.
-
-
Field Summary
Fields Modifier and Type Field Description booleanforceAllowInsecureDecoderComponentsWhether to allow use of insecure decoder components even if the underlying platform says otherwise.byte[]sessionIdThe DRM session id.UUIDuuidThe DRM scheme UUID.static booleanWORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODECWhether the device needs keys to have been loaded into theDrmSessionbefore codec configuration.
-
Constructor Summary
Constructors Constructor Description FrameworkCryptoConfig(UUID uuid, byte[] sessionId, boolean forceAllowInsecureDecoderComponents)
-
-
-
Field Detail
-
WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC
public static final boolean WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC
Whether the device needs keys to have been loaded into theDrmSessionbefore codec configuration.
-
uuid
public final UUID uuid
The DRM scheme UUID.
-
sessionId
public final byte[] sessionId
The DRM session id.
-
forceAllowInsecureDecoderComponents
public final boolean forceAllowInsecureDecoderComponents
Whether to allow use of insecure decoder components even if the underlying platform says otherwise.
-
-
Constructor Detail
-
FrameworkCryptoConfig
public FrameworkCryptoConfig(UUID uuid, byte[] sessionId, boolean forceAllowInsecureDecoderComponents)
- Parameters:
uuid- The DRM scheme UUID.sessionId- The DRM session id.forceAllowInsecureDecoderComponents- Whether to allow use of insecure decoder components even if the underlying platform says otherwise.
-
-