MediaCodec.Callback.OnCryptoError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called only when MediaCodec encountered a crypto(decryption) error when using a decoder configured with CONFIGURE_FLAG_USE_CRYPTO_ASYNC flag along with crypto or descrambler object.
[Android.Runtime.Register("onCryptoError", "(Landroid/media/MediaCodec;Landroid/media/MediaCodec$CryptoException;)V", "GetOnCryptoError_Landroid_media_MediaCodec_Landroid_media_MediaCodec_CryptoException_Handler", ApiSince=34)]
public virtual void OnCryptoError(Android.Media.MediaCodec codec, Android.Media.MediaCodec.CryptoException e);
[<Android.Runtime.Register("onCryptoError", "(Landroid/media/MediaCodec;Landroid/media/MediaCodec$CryptoException;)V", "GetOnCryptoError_Landroid_media_MediaCodec_Landroid_media_MediaCodec_CryptoException_Handler", ApiSince=34)>]
abstract member OnCryptoError : Android.Media.MediaCodec * Android.Media.MediaCodec.CryptoException -> unit
override this.OnCryptoError : Android.Media.MediaCodec * Android.Media.MediaCodec.CryptoException -> unit
Parameters
- codec
- MediaCodec
The MediaCodec object. This value cannot be null.
The MediaCodec.CryptoException object with error details. This value cannot be null.
- Attributes
Remarks
Called only when MediaCodec encountered a crypto(decryption) error when using a decoder configured with CONFIGURE_FLAG_USE_CRYPTO_ASYNC flag along with crypto or descrambler object.
Android reference for android.media.MediaCodec.Callback.onCryptoError.
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.