Android Guides | Samples

Android.Media.MediaCodec.CryptoInfo Class

Metadata describing the structure of a (at least partially) encrypted input sample.

See Also: MediaCodec+CryptoInfo

Syntax

[Android.Runtime.Register("android/media/MediaCodec$CryptoInfo", DoNotGenerateAcw=true)]
public sealed class MediaCodec.CryptoInfo : Object

Remarks

Metadata describing the structure of a (at least partially) encrypted input sample. A buffer's data is considered to be partitioned into "subSamples", each subSample starts with a (potentially empty) run of plain, unencrypted bytes followed by a (also potentially empty) run of encrypted bytes. numBytesOfClearData can be null to indicate that all data is encrypted. This information encapsulates per-sample metadata as outlined in ISO/IEC FDIS 23001-7:2011 "Common encryption in ISO base media file format files".

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16

The members of Android.Media.MediaCodec.CryptoInfo are listed below.

See Also: Object

Public Constructors

Public Properties

IvIList<byte>. A 16-byte initialization vector
KeyIList<byte>. A 16-byte opaque key
ModeMediaCodecCryptoMode. The type of encryption that has been applied, see MediaCodec.CryptoModeUnencrypted and MediaCodec.CryptoModeAesCtr.
NumBytesOfClearDataIList<int>. The number of leading unencrypted bytes in each subSample.
NumBytesOfEncryptedDataIList<int>. The number of trailing encrypted bytes in each subSample.
NumSubSamplesInt32. The number of subSamples that make up the buffer's contents.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods