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 .

Summary

Constants

static final boolean

Whether the device needs keys to have been loaded into the DrmSession before codec configuration.

Public fields

final boolean

Whether to allow use of insecure decoder components even if the underlying platform says otherwise.

final byte[]

The DRM session id.

final UUID

The DRM scheme UUID.

Public constructors

FrameworkCryptoConfig(
    UUID uuid,
    byte[] sessionId,
    boolean forceAllowInsecureDecoderComponents
)

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

forceAllowInsecureDecoderComponents

public final boolean forceAllowInsecureDecoderComponents

Whether to allow use of insecure decoder components even if the underlying platform says otherwise.

sessionId

public final byte[] sessionId

The DRM session id.

uuid

public final UUID uuid

The DRM scheme UUID.

Public constructors

FrameworkCryptoConfig

public FrameworkCryptoConfig(
    UUID uuid,
    byte[] sessionId,
    boolean forceAllowInsecureDecoderComponents
)
Parameters
UUID uuid

The DRM scheme UUID.

byte[] sessionId

The DRM session id.

boolean forceAllowInsecureDecoderComponents

Whether to allow use of insecure decoder components even if the underlying platform says otherwise.