Java android.media MediaDrm fields, constructors, methods, implement or subclass

Example usage for Java android.media MediaDrm fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media MediaDrm.

The text is from its open source code.

Field

intKEY_TYPE_STREAMING
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.
intKEY_TYPE_OFFLINE
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.
StringPROPERTY_VENDOR
String property name: identifies the maker of the DRM plugin
StringPROPERTY_VERSION
String property name: identifies the version of the DRM plugin
StringPROPERTY_DESCRIPTION
String property name: describes the DRM plugin
StringPROPERTY_ALGORITHMS
String property name: a comma-separated list of cipher and mac algorithms supported by CryptoSession.
StringPROPERTY_DEVICE_UNIQUE_ID
Byte array property name: the device unique identifier is established during device provisioning and provides a means of uniquely identifying each device.

Constructor

MediaDrm(@NonNull UUID uuid)
Instantiate a MediaDrm object

Method

voidcloseSession(@NonNull byte[] sessionId)
Close a session on the MediaDrm object that was previously opened with #openSession .
KeyRequestgetKeyRequest(@NonNull byte[] scope, @Nullable byte[] init, @Nullable String mimeType, @KeyType int keyType, @Nullable HashMap optionalParameters)
A key request/response exchange occurs between the app and a license server to obtain or release keys used to decrypt encrypted content.
StringgetPropertyString(@NonNull @StringProperty String propertyName)
Read a MediaDrm String property value, given the property name string.
booleanisCryptoSchemeSupported(@NonNull UUID uuid)
Query if the given scheme identified by its UUID is supported on this device.
byte[]openSession()
Open a new session with the MediaDrm object.
HashMapqueryKeyStatus(@NonNull byte[] sessionId)
Request an informative description of the key status for the session.
voidrestoreKeys(@NonNull byte[] sessionId, @NonNull byte[] keySetId)
Restore persisted offline keys into a new session.