Class FrameworkCryptoConfig
- java.lang.Object
-
- com.google.android.exoplayer2.drm.FrameworkCryptoConfig
-
- All Implemented Interfaces:
CryptoConfig
@Deprecated public final class FrameworkCryptoConfig extends Object implements CryptoConfig
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.ACryptoConfig
forC.CRYPTO_TYPE_FRAMEWORK
. Contains the necessary information to build or update a frameworkMediaCrypto
that can be used to configure aMediaCodec
.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
forceAllowInsecureDecoderComponents
Deprecated.Whether to allow use of insecure decoder components even if the underlying platform says otherwise.byte[]
sessionId
Deprecated.The DRM session id.UUID
uuid
Deprecated.The DRM scheme UUID.static boolean
WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC
Deprecated.Whether the device needs keys to have been loaded into theDrmSession
before codec configuration.
-
Constructor Summary
Constructors Constructor Description FrameworkCryptoConfig(UUID uuid, byte[] sessionId, boolean forceAllowInsecureDecoderComponents)
Deprecated.
-
-
-
Field Detail
-
WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC
public static final boolean WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC
Deprecated.Whether the device needs keys to have been loaded into theDrmSession
before codec configuration.
-
uuid
public final UUID uuid
Deprecated.The DRM scheme UUID.
-
sessionId
public final byte[] sessionId
Deprecated.The DRM session id.
-
forceAllowInsecureDecoderComponents
public final boolean forceAllowInsecureDecoderComponents
Deprecated.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)
Deprecated.- 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.
-
-