Android Guides | Samples

Android.Media.MediaCrypto Class

MediaCrypto class can be used in conjunction with MediaCodec to decode encrypted media data.

See Also: MediaCrypto

Syntax

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

Remarks

MediaCrypto class can be used in conjunction with MediaCodec to decode encrypted media data. Crypto schemes are assigned 16 byte UUIDs, the method MediaCrypto.IsCryptoSchemeSupported(UUID) can be used to query if a given scheme is supported on the device.

[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.MediaCrypto are listed below.

See Also: Object

Public Constructors

Instantiate a MediaCrypto object using opaque, crypto scheme specific data.

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

static
IsCryptoSchemeSupported(UUID) : Boolean
Query if the given scheme identified by its UUID is supported on this device.
Release()
RequiresSecureDecoderComponent(String) : Boolean
Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type.