Sdílet prostřednictvím


MediaExtractor.GetSampleCryptoInfo(MediaCodec+CryptoInfo) Method

Definition

If the sample flags indicate that the current sample is at least partially encrypted, this call returns relevant information about the structure of the sample data required for decryption.

[Android.Runtime.Register("getSampleCryptoInfo", "(Landroid/media/MediaCodec$CryptoInfo;)Z", "")]
public bool GetSampleCryptoInfo (Android.Media.MediaCodec.CryptoInfo info);
[<Android.Runtime.Register("getSampleCryptoInfo", "(Landroid/media/MediaCodec$CryptoInfo;)Z", "")>]
member this.GetSampleCryptoInfo : Android.Media.MediaCodec.CryptoInfo -> bool

Parameters

info
MediaCodec.CryptoInfo

The android.media.MediaCodec.CryptoInfo structure to be filled in.

Returns

true iff the sample flags contain #SAMPLE_FLAG_ENCRYPTED

Attributes

Remarks

Java documentation for android.media.MediaExtractor.getSampleCryptoInfo(android.media.CryptoInfo).

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