Android.Media.MediaDrm Members

The members of Android.Media.MediaDrm are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Instantiate a MediaDrm object

Public Fields

const
EventKeyExpiredMediaDrmEventType (3). This event type indicates that the licensed usage duration for keys in a session has expired.
const
EventKeyRequiredMediaDrmEventType (2). This event type indicates that the app needs to request keys from a license server.
const
EventProvisionRequiredMediaDrmEventType (1). This event type indicates that the app needs to request a certificate from the provisioning server.
const
EventVendorDefinedMediaDrmEventType (4). This event may indicate some specific vendor-defined condition, see your DRM provider documentation for details
const
KeyTypeOfflineMediaDrmKeyType (2). This key request type specifies that the keys will be for offline use, they will be saved to the device for use when the device is not connected to a network.
const
KeyTypeReleaseMediaDrmKeyType (3). This key request type specifies that previously saved offline keys should be released.
const
KeyTypeStreamingMediaDrmKeyType (1). This key request type species that the keys will be for online use, they will not be saved to the device for subsequent use when the device is not connected to a network.
const
PropertyAlgorithmsstring. String property name: a comma-separated list of cipher and mac algorithms supported by CryptoSession.
const
PropertyDescriptionstring. String property name: describes the DRM engine plugin
const
PropertyDeviceUniqueIdstring. Byte array property name: the device unique identifier is established during device provisioning and provides a means of uniquely identifying each device.
const
PropertyVendorstring. String property name: identifies the maker of the DRM engine plugin
const
PropertyVersionstring. String property name: identifies the version of the DRM engine plugin

Public Properties

[read-only]
SecureStopsIList<Byte[]>. A means of enforcing limits on the number of concurrent streams per subscriber across devices is provided via SecureStop.

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

CloseSession(byte[])
Close a session on the MediaDrm object that was previously opened with MediaDrm.OpenSession.
GetCryptoSession(byte[], string, string) : MediaDrm.CryptoSession
Obtain a CryptoSession object which can be used to encrypt, decrypt, sign and verify messages or data using the session keys established for the session using methods MediaDrm.getKeyRequest(byte[], byte[], java.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>) and MediaDrm.ProvideKeyResponse(Byte[], System.Byte[]) using a session key server.
GetKeyRequest(byte[], byte[], string, int, IDictionary<string, string>) : MediaDrm.KeyRequest
Documentation for this section has not yet been entered.
GetPropertyByteArray(string) : byte[]
Read a DRM engine plugin byte array property value, given the property name string.
GetPropertyString(string) : string
Read a DRM engine plugin String property value, given the property name string.
GetProvisionRequest() : MediaDrm.ProvisionRequest
A provision request/response exchange occurs between the app and a provisioning server to retrieve a device certificate.
static
IsCryptoSchemeSupported(Java.Util.UUID) : bool
Query if the given scheme identified by its UUID is supported on this device.
static
IsCryptoSchemeSupported(Java.Util.UUID, string) : bool
Query if the given scheme identified by its UUID is supported on this device, and whether the drm plugin is able to handle the media container format specified by mimeType.
OpenSession() : byte[]
Open a new session with the MediaDrm object.
ProvideKeyResponse(byte[], byte[]) : byte[]
A key response is received from the license server by the app, then it is provided to the DRM engine plugin using provideKeyResponse.
ProvideProvisionResponse(byte[])
After a provision response is received by the app, it is provided to the DRM engine plugin using this method.
QueryKeyStatus(byte[]) : IDictionary<string, string>
Request an informative description of the key status for the session.
Release()
ReleaseSecureStops(byte[])
Process the SecureStop server response message ssRelease.
RemoveKeys(byte[])
Remove the current keys from a session.
RestoreKeys(byte[], byte[])
Restore persisted offline keys into a new session. keySetId identifies the keys to load, obtained from a prior call to MediaDrm.ProvideKeyResponse(Byte[], System.Byte[]).
SetOnEventListener(MediaDrm.IOnEventListener)
Register a callback to be invoked when an event occurs
SetPropertyByteArray(string, byte[])
Set a DRM engine plugin byte array property value.
SetPropertyString(string, string)
Set a DRM engine plugin String property value.

Public Events

MediaDrmEventDocumentation for this section has not yet been entered.