FrameworkCryptoConfig


@UnstableApi
class FrameworkCryptoConfig : 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

const Boolean

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

Public constructors

FrameworkCryptoConfig(
    uuid: UUID!,
    sessionId: ByteArray!,
    forceAllowInsecureDecoderComponents: Boolean
)

Public properties

Boolean

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

ByteArray<Byte>!

The DRM session id.

UUID!

The DRM scheme UUID.

Constants

WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC

const val WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODECBoolean

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

Public constructors

FrameworkCryptoConfig

FrameworkCryptoConfig(
    uuid: UUID!,
    sessionId: ByteArray!,
    forceAllowInsecureDecoderComponents: Boolean
)
Parameters
uuid: UUID!

The DRM scheme UUID.

sessionId: ByteArray!

The DRM session id.

forceAllowInsecureDecoderComponents: Boolean

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

Public properties

forceAllowInsecureDecoderComponents

val forceAllowInsecureDecoderComponentsBoolean

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

sessionId

val sessionIdByteArray<Byte>!

The DRM session id.

uuid

val uuidUUID!

The DRM scheme UUID.