Back to Exoplayer

FrameworkCryptoConfig (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/FrameworkCryptoConfig.html

latest4.1 KB
Original Source

Package com.google.android.exoplayer2.drm

Class FrameworkCryptoConfig

  • java.lang.Object

    • com.google.android.exoplayer2.drm.FrameworkCryptoConfig
  • All Implemented Interfaces:CryptoConfig


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classFrameworkCryptoConfigextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[CryptoConfig](../decoder/CryptoConfig.html "interface in com.google.android.exoplayer2.decoder")

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.

A CryptoConfig for C.CRYPTO_TYPE_FRAMEWORK. Contains the necessary information to build or update a framework MediaCrypto that can be used to configure a MediaCodec.

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 the DrmSession before codec configuration. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | FrameworkCryptoConfig​(UUID uuid, byte[] sessionId, boolean forceAllowInsecureDecoderComponents) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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 the DrmSession before codec configuration.

- 

uuid

public final[UUID](https://developer.android.com/reference/java/util/UUID.html "class or interface in java.util")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](https://developer.android.com/reference/java/util/UUID.html "class or interface in java.util")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.