Table of Contents

Class MediaDrm

Namespace
Android.Media
Assembly
MASES.Netdroid.dll
public class MediaDrm : AutoCloseable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IAutoCloseable
Inheritance
MediaDrm
Implements
Extension Methods

Constructors

MediaDrm(UUID)

public MediaDrm(UUID arg0)

Parameters

arg0 UUID

UUID

Exceptions

UnsupportedSchemeException

MediaDrm(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public MediaDrm(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

EVENT_KEY_EXPIRED

[Obsolete("Deprecated in JVM")]
public static int EVENT_KEY_EXPIRED { get; set; }

Property Value

int

EVENT_KEY_REQUIRED

public static int EVENT_KEY_REQUIRED { get; set; }

Property Value

int

EVENT_PROVISION_REQUIRED

[Obsolete("Deprecated in JVM")]
public static int EVENT_PROVISION_REQUIRED { get; set; }

Property Value

int

EVENT_SESSION_RECLAIMED

public static int EVENT_SESSION_RECLAIMED { get; set; }

Property Value

int

EVENT_VENDOR_DEFINED

public static int EVENT_VENDOR_DEFINED { get; set; }

Property Value

int

HDCP_LEVEL_UNKNOWN

public static int HDCP_LEVEL_UNKNOWN { get; set; }

Property Value

int

HDCP_NONE

public static int HDCP_NONE { get; set; }

Property Value

int

HDCP_NO_DIGITAL_OUTPUT

public static int HDCP_NO_DIGITAL_OUTPUT { get; set; }

Property Value

int

HDCP_V1

public static int HDCP_V1 { get; set; }

Property Value

int

HDCP_V2

public static int HDCP_V2 { get; set; }

Property Value

int

HDCP_V2_1

public static int HDCP_V2_1 { get; set; }

Property Value

int

HDCP_V2_2

public static int HDCP_V2_2 { get; set; }

Property Value

int

HDCP_V2_3

public static int HDCP_V2_3 { get; set; }

Property Value

int

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

KEY_TYPE_OFFLINE

public static int KEY_TYPE_OFFLINE { get; set; }

Property Value

int

KEY_TYPE_RELEASE

public static int KEY_TYPE_RELEASE { get; set; }

Property Value

int

KEY_TYPE_STREAMING

public static int KEY_TYPE_STREAMING { get; set; }

Property Value

int

OFFLINE_LICENSE_STATE_RELEASED

public static int OFFLINE_LICENSE_STATE_RELEASED { get; set; }

Property Value

int

OFFLINE_LICENSE_STATE_UNKNOWN

public static int OFFLINE_LICENSE_STATE_UNKNOWN { get; set; }

Property Value

int

OFFLINE_LICENSE_STATE_USABLE

public static int OFFLINE_LICENSE_STATE_USABLE { get; set; }

Property Value

int

PROPERTY_ALGORITHMS

public static String PROPERTY_ALGORITHMS { get; set; }

Property Value

String

PROPERTY_DESCRIPTION

public static String PROPERTY_DESCRIPTION { get; set; }

Property Value

String

PROPERTY_DEVICE_UNIQUE_ID

public static String PROPERTY_DEVICE_UNIQUE_ID { get; set; }

Property Value

String

PROPERTY_VENDOR

public static String PROPERTY_VENDOR { get; set; }

Property Value

String

PROPERTY_VERSION

public static String PROPERTY_VERSION { get; set; }

Property Value

String

SECURITY_LEVEL_HW_SECURE_ALL

public static int SECURITY_LEVEL_HW_SECURE_ALL { get; set; }

Property Value

int

SECURITY_LEVEL_HW_SECURE_CRYPTO

public static int SECURITY_LEVEL_HW_SECURE_CRYPTO { get; set; }

Property Value

int

SECURITY_LEVEL_HW_SECURE_DECODE

public static int SECURITY_LEVEL_HW_SECURE_DECODE { get; set; }

Property Value

int

SECURITY_LEVEL_SW_SECURE_CRYPTO

public static int SECURITY_LEVEL_SW_SECURE_CRYPTO { get; set; }

Property Value

int

SECURITY_LEVEL_SW_SECURE_DECODE

public static int SECURITY_LEVEL_SW_SECURE_DECODE { get; set; }

Property Value

int

SECURITY_LEVEL_UNKNOWN

public static int SECURITY_LEVEL_UNKNOWN { get; set; }

Property Value

int

Methods

ClearOnEventListener()

public void ClearOnEventListener()

ClearOnExpirationUpdateListener()

public void ClearOnExpirationUpdateListener()

ClearOnKeyStatusChangeListener()

public void ClearOnKeyStatusChangeListener()

ClearOnSessionLostStateListener()

public void ClearOnSessionLostStateListener()

Close()

public void Close()

CloseSession(byte[])

public void CloseSession(byte[] arg0)

Parameters

arg0 byte[]

byte

CreatePoolableInstance(UUID)

HPA initializer for MediaDrm(Java.Util.UUID arg0)

public static MediaDrm CreatePoolableInstance(UUID arg0)

Parameters

arg0 UUID

Returns

MediaDrm

GetConnectedHdcpLevel()

public int GetConnectedHdcpLevel()

Returns

int

int

GetCryptoSession(byte[], String, String)

public MediaDrm.CryptoSession GetCryptoSession(byte[] arg0, String arg1, String arg2)

Parameters

arg0 byte[]

byte

arg1 String

String

arg2 String

String

Returns

MediaDrm.CryptoSession

MediaDrm.CryptoSession

GetKeyRequest(byte[], byte[], String, int, HashMap<String, String>)

public MediaDrm.KeyRequest GetKeyRequest(byte[] arg0, byte[] arg1, String arg2, int arg3, HashMap<String, String> arg4)

Parameters

arg0 byte[]

byte

arg1 byte[]

byte

arg2 String

String

arg3 int

int

arg4 HashMap<String, String>

HashMap

Returns

MediaDrm.KeyRequest

MediaDrm.KeyRequest

Exceptions

NotProvisionedException

GetLogMessages()

public List<MediaDrm.LogMessage> GetLogMessages()

Returns

List<MediaDrm.LogMessage>

List

GetMaxHdcpLevel()

public int GetMaxHdcpLevel()

Returns

int

int

GetMaxSecurityLevel()

public static int GetMaxSecurityLevel()

Returns

int

int

GetMaxSessionCount()

public int GetMaxSessionCount()

Returns

int

int

GetMetrics()

public PersistableBundle GetMetrics()

Returns

PersistableBundle

PersistableBundle

GetOfflineLicenseKeySetIds()

public List<byte[]> GetOfflineLicenseKeySetIds()

Returns

List<byte[]>

List

GetOfflineLicenseState(byte[])

public int GetOfflineLicenseState(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

int

int

GetOpenSessionCount()

public int GetOpenSessionCount()

Returns

int

int

GetPlaybackComponent(byte[])

public MediaDrm.PlaybackComponent GetPlaybackComponent(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

MediaDrm.PlaybackComponent

MediaDrm.PlaybackComponent

GetPropertyByteArray(String)

public byte[] GetPropertyByteArray(String arg0)

Parameters

arg0 String

String

Returns

byte[]

byte

GetPropertyString(String)

public String GetPropertyString(String arg0)

Parameters

arg0 String

String

Returns

String

String

GetProvisionRequest()

public MediaDrm.ProvisionRequest GetProvisionRequest()

Returns

MediaDrm.ProvisionRequest

MediaDrm.ProvisionRequest

GetSecureStop(byte[])

[Obsolete("Deprecated in JVM")]
public byte[] GetSecureStop(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

byte[]

byte

GetSecureStopIds()

[Obsolete("Deprecated in JVM")]
public List<byte[]> GetSecureStopIds()

Returns

List<byte[]>

List

GetSecureStops()

[Obsolete("Deprecated in JVM")]
public List<byte[]> GetSecureStops()

Returns

List<byte[]>

List

GetSecurityLevel(byte[])

public int GetSecurityLevel(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

int

int

GetSupportedCryptoSchemes()

public static List<UUID> GetSupportedCryptoSchemes()

Returns

List<UUID>

List

IsCryptoSchemeSupported(UUID)

public static bool IsCryptoSchemeSupported(UUID arg0)

Parameters

arg0 UUID

UUID

Returns

bool

bool

IsCryptoSchemeSupported(UUID, String)

public static bool IsCryptoSchemeSupported(UUID arg0, String arg1)

Parameters

arg0 UUID

UUID

arg1 String

String

Returns

bool

bool

IsCryptoSchemeSupported(UUID, String, int)

public static bool IsCryptoSchemeSupported(UUID arg0, String arg1, int arg2)

Parameters

arg0 UUID

UUID

arg1 String

String

arg2 int

int

Returns

bool

bool

OpenSession()

public byte[] OpenSession()

Returns

byte[]

byte

Exceptions

NotProvisionedException
ResourceBusyException

OpenSession(int)

public byte[] OpenSession(int arg0)

Parameters

arg0 int

int

Returns

byte[]

byte

Exceptions

NotProvisionedException
ResourceBusyException

ProvideKeyResponse(byte[], byte[])

public byte[] ProvideKeyResponse(byte[] arg0, byte[] arg1)

Parameters

arg0 byte[]

byte

arg1 byte[]

byte

Returns

byte[]

byte

Exceptions

DeniedByServerException
NotProvisionedException

ProvideProvisionResponse(byte[])

public void ProvideProvisionResponse(byte[] arg0)

Parameters

arg0 byte[]

byte

Exceptions

DeniedByServerException

QueryKeyStatus(byte[])

public HashMap<String, String> QueryKeyStatus(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

HashMap<String, String>

HashMap

Release()

[Obsolete("Deprecated in JVM")]
public void Release()

ReleaseAllSecureStops()

[Obsolete("Deprecated in JVM")]
public void ReleaseAllSecureStops()

ReleaseSecureStops(byte[])

[Obsolete("Deprecated in JVM")]
public void ReleaseSecureStops(byte[] arg0)

Parameters

arg0 byte[]

byte

RemoveAllSecureStops()

[Obsolete("Deprecated in JVM")]
public void RemoveAllSecureStops()

RemoveKeys(byte[])

public void RemoveKeys(byte[] arg0)

Parameters

arg0 byte[]

byte

RemoveOfflineLicense(byte[])

public void RemoveOfflineLicense(byte[] arg0)

Parameters

arg0 byte[]

byte

RemoveSecureStop(byte[])

[Obsolete("Deprecated in JVM")]
public void RemoveSecureStop(byte[] arg0)

Parameters

arg0 byte[]

byte

RequiresSecureDecoder(String)

public bool RequiresSecureDecoder(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

RequiresSecureDecoder(String, int)

public bool RequiresSecureDecoder(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

bool

bool

RestoreKeys(byte[], byte[])

public void RestoreKeys(byte[] arg0, byte[] arg1)

Parameters

arg0 byte[]

byte

arg1 byte[]

byte

SetOnEventListener(OnEventListener)

public void SetOnEventListener(MediaDrm.OnEventListener arg0)

Parameters

arg0 MediaDrm.OnEventListener

MediaDrm.OnEventListener

SetOnEventListener(OnEventListener, Handler)

public void SetOnEventListener(MediaDrm.OnEventListener arg0, Handler arg1)

Parameters

arg0 MediaDrm.OnEventListener

MediaDrm.OnEventListener

arg1 Handler

Handler

SetOnEventListener(Executor, OnEventListener)

public void SetOnEventListener(Executor arg0, MediaDrm.OnEventListener arg1)

Parameters

arg0 Executor

Executor

arg1 MediaDrm.OnEventListener

MediaDrm.OnEventListener

SetOnExpirationUpdateListener(OnExpirationUpdateListener, Handler)

public void SetOnExpirationUpdateListener(MediaDrm.OnExpirationUpdateListener arg0, Handler arg1)

Parameters

arg0 MediaDrm.OnExpirationUpdateListener

MediaDrm.OnExpirationUpdateListener

arg1 Handler

Handler

SetOnExpirationUpdateListener(Executor, OnExpirationUpdateListener)

public void SetOnExpirationUpdateListener(Executor arg0, MediaDrm.OnExpirationUpdateListener arg1)

Parameters

arg0 Executor

Executor

arg1 MediaDrm.OnExpirationUpdateListener

MediaDrm.OnExpirationUpdateListener

SetOnKeyStatusChangeListener(OnKeyStatusChangeListener, Handler)

public void SetOnKeyStatusChangeListener(MediaDrm.OnKeyStatusChangeListener arg0, Handler arg1)

Parameters

arg0 MediaDrm.OnKeyStatusChangeListener

MediaDrm.OnKeyStatusChangeListener

arg1 Handler

Handler

SetOnKeyStatusChangeListener(Executor, OnKeyStatusChangeListener)

public void SetOnKeyStatusChangeListener(Executor arg0, MediaDrm.OnKeyStatusChangeListener arg1)

Parameters

arg0 Executor

Executor

arg1 MediaDrm.OnKeyStatusChangeListener

MediaDrm.OnKeyStatusChangeListener

SetOnSessionLostStateListener(OnSessionLostStateListener, Handler)

public void SetOnSessionLostStateListener(MediaDrm.OnSessionLostStateListener arg0, Handler arg1)

Parameters

arg0 MediaDrm.OnSessionLostStateListener

MediaDrm.OnSessionLostStateListener

arg1 Handler

Handler

SetOnSessionLostStateListener(Executor, OnSessionLostStateListener)

public void SetOnSessionLostStateListener(Executor arg0, MediaDrm.OnSessionLostStateListener arg1)

Parameters

arg0 Executor

Executor

arg1 MediaDrm.OnSessionLostStateListener

MediaDrm.OnSessionLostStateListener

SetPropertyByteArray(String, byte[])

public void SetPropertyByteArray(String arg0, byte[] arg1)

Parameters

arg0 String

String

arg1 byte[]

byte

SetPropertyString(String, String)

public void SetPropertyString(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String