Example usage for Java android.media MediaDrm fields, constructors, methods, implement or subclass
The text is from its open source code.
int | KEY_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. |
int | KEY_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. |
String | PROPERTY_VENDOR String property name: identifies the maker of the DRM plugin |
String | PROPERTY_VERSION String property name: identifies the version of the DRM plugin |
String | PROPERTY_DESCRIPTION String property name: describes the DRM plugin |
String | PROPERTY_ALGORITHMS String property name: a comma-separated list of cipher and mac algorithms supported by CryptoSession. |
String | PROPERTY_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. |
MediaDrm(@NonNull UUID uuid) Instantiate a MediaDrm object |
void | closeSession(@NonNull byte[] sessionId) Close a session on the MediaDrm object that was previously opened with #openSession . |
KeyRequest | getKeyRequest(@NonNull byte[] scope, @Nullable byte[] init, @Nullable String mimeType, @KeyType int keyType, @Nullable HashMap A key request/response exchange occurs between the app and a license server to obtain or release keys used to decrypt encrypted content. |
String | getPropertyString(@NonNull @StringProperty String propertyName) Read a MediaDrm String property value, given the property name string. |
boolean | isCryptoSchemeSupported(@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. |
HashMap | queryKeyStatus(@NonNull byte[] sessionId) Request an informative description of the key status for the session. |
void | restoreKeys(@NonNull byte[] sessionId, @NonNull byte[] keySetId) Restore persisted offline keys into a new session. |