FrameworkCryptoConfig
@UnstableApi
public final class FrameworkCryptoConfig implements CryptoConfig
A CryptoConfig for CRYPTO_TYPE_FRAMEWORK. Contains the necessary information to build or update a framework MediaCrypto that can be used to configure a MediaCodec.
Summary
Constants |
|
|---|---|
static final boolean |
Whether the device needs keys to have been loaded into the |
Public fields |
|
|---|---|
final boolean |
This field is deprecated. Use |
final byte[] |
The DRM session id. |
final UUID |
The DRM scheme UUID. |
Public constructors |
|---|
FrameworkCryptoConfig(UUID uuid, byte[] sessionId)Constructs an instance. |
This method is deprecated. Use |
Constants
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 the DrmSession before codec configuration.
Public fields
Public constructors
FrameworkCryptoConfig
public FrameworkCryptoConfig(UUID uuid, byte[] sessionId)
Constructs an instance.
| Parameters | |
|---|---|
UUID uuid |
The DRM scheme UUID. |
byte[] sessionId |
The DRM session id. |
FrameworkCryptoConfig
publicFrameworkCryptoConfig(
UUID uuid,
byte[] sessionId,
boolean forceAllowInsecureDecoderComponents
)