MediaCodec.ConfigureFlagUseCryptoAsync Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.MediaCodecConfigFlags enum directly instead of this field.

This flag should be used on a secure decoder only.

[Android.Runtime.Register("CONFIGURE_FLAG_USE_CRYPTO_ASYNC", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaCodecConfigFlags enum directly instead of this field.", true)]
public const Android.Media.MediaCodecConfigFlags ConfigureFlagUseCryptoAsync = 4;
[<Android.Runtime.Register("CONFIGURE_FLAG_USE_CRYPTO_ASYNC", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaCodecConfigFlags enum directly instead of this field.", true)>]
val mutable ConfigureFlagUseCryptoAsync : Android.Media.MediaCodecConfigFlags

Field Value

Value = 4
Attributes

Remarks

This flag should be used on a secure decoder only. MediaCodec configured with this flag does decryption in a separate thread. The flag requires MediaCodec to operate asynchronously and will throw CryptoException if any, in the onCryptoError() callback. Applications should override the default implementation of onCryptoError() and access the associated CryptoException.

CryptoException thrown will contain MediaCodec.CryptoInfo This can be accessed using getCryptoInfo()

Java documentation for android.media.MediaCodec.CONFIGURE_FLAG_USE_CRYPTO_ASYNC.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to