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

This field is deprecated.

Use requiresSecureDecoder instead, which incorporates this logic.

final byte[]

The DRM session id.

final UUID

The DRM scheme UUID.

Public constructors

FrameworkCryptoConfig(UUID uuid, byte[] sessionId)

Constructs an instance.

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

This method is deprecated.

Use FrameworkCryptoConfig instead, and requiresSecureDecoder for the secure decoder handling logic.

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

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)

Constructs an instance.

Parameters
UUID uuid

The DRM scheme UUID.

byte[] sessionId

The DRM session id.

FrameworkCryptoConfig

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