語言

MediaCodec.ConfigureFlagUseCryptoAsync 欄位

定義

警告

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

此旗標應僅用於安全解碼器。

[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

欄位值

Value = 4
屬性

備註

此旗標應僅用於安全解碼器。 用這個旗標設定的 MediaCodec 會在另一個執行緒中進行解密。 此旗標要求 MediaCodec 非同步運作,若有 CryptoException,則會在 onCryptoError() 回調中拋出 CryptoException。 應用程式應覆蓋 onCryptoError() 的預設實作,並存取相關的 CryptoException。

拋出的 CryptoException 將包含 MediaCodec.CryptoInfo 可使用 getCryptoInfo() 存取此資料

Java 文件 android.media.MediaCodec.CONFIGURE_FLAG_USE_CRYPTO_ASYNC。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於