Example usage for android.media MediaDrm PROPERTY_DESCRIPTION

List of usage examples for android.media MediaDrm PROPERTY_DESCRIPTION

Introduction

In this page you can find the example usage for android.media MediaDrm PROPERTY_DESCRIPTION.

Prototype

String PROPERTY_DESCRIPTION

To view the source code for android.media MediaDrm PROPERTY_DESCRIPTION.

Click Source Link

Document

String property name: describes the DRM plugin

Usage

From source file:at.amartinz.hardware.drm.BaseDrmInfo.java

private MediaDrm setup() {
    MediaDrm drm;/*from   w w  w  . j  a v a 2 s .com*/
    try {
        drm = new MediaDrm(getUuid());
    } catch (UnsupportedSchemeException use) {
        drm = null;
    }

    if (drm == null) {
        return null;
    }

    vendor = getProperty(drm, MediaDrm.PROPERTY_VENDOR);
    version = getProperty(drm, MediaDrm.PROPERTY_VERSION);
    description = getProperty(drm, MediaDrm.PROPERTY_DESCRIPTION);

    systemId = getProperty(drm, "systemId");
    deviceId = getProperty(drm, MediaDrm.PROPERTY_DEVICE_UNIQUE_ID);

    algorithms = getProperty(drm, MediaDrm.PROPERTY_ALGORITHMS);
    algorithms = splitList(algorithms);

    securityLevel = getProperty(drm, "securityLevel");
    hdcpLevel = getProperty(drm, "hdcpLevel");
    hdcpLevelMax = getProperty(drm, "maxHdcpLevel");

    isUsageReportingSupported = getBooleanProperty(drm, "usageReportingSupport");

    sessionNumberMax = getProperty(drm, "maxNumberOfSessions");
    sessionNumberOpen = getProperty(drm, "numberOfOpenSessions");

    return drm;
}