Skip to content

Latest commit

 

History

History
161 lines (117 loc) · 3.9 KB

File metadata and controls

161 lines (117 loc) · 3.9 KB

OpenCDMi Plugin

A OCDM plugin for Thunder framework.

Table of Contents

Abbreviation, Acronyms and Terms

[Refer to this link]

Description

The OpenCDMi plugin allows you view Open Content Decryption Module (OCDM) properties.

The plugin is designed to be loaded and executed within the Thunder framework. For more information about the framework refer to [Thunder].

Configuration

The table below lists configuration options of the plugin.

Name Type Description
callsign string Plugin instance name (default: OCDM)
classname string Class name: OCDM
locator string Library name: libWPEFrameworkOCDM.so
autostart boolean Determines if the plugin shall be started automatically along with the framework
configuration object (optional)
configuration?.location string (optional) The location
configuration?.connector string (optional) The connector
configuration?.sharepath string (optional) The sharepath
configuration?.sharesize string (optional) The sharesize
configuration?.systems array (optional) A list of key systems
configuration?.systems[#] object (optional) System properties
configuration?.systems[#]?.name string (optional) Property name
configuration?.systems[#]?.designators array (optional) designator
configuration?.systems[#]?.designators[#] object (optional) System properties
configuration?.systems[#]?.designators[#].name string Property name

Properties

The following properties are provided by the OCDM plugin:

OCDM interface properties:

Property Description
drms RO Supported DRM systems
keysystems RO DRM key systems

drms

Provides access to the supported DRM systems.

This property is read-only.

Events

No Events

Value

Name Type Description
(property) array Supported DRM systems
(property)[#] object
(property)[#].name string The name of the DRM system
(property)[#].keysystems array
(property)[#].keysystems[#] string An identifier of a key system

Example

Get Request

{
    "jsonrpc": "2.0",
    "id": 42,
    "method": "OCDM.drms"
}

Get Response

{
    "jsonrpc": "2.0",
    "id": 42,
    "result": [
        {
            "name": "PlayReady",
            "keysystems": [
                "com.microsoft.playready"
            ]
        }
    ]
}

keysystems

Provides access to the DRM key systems.

This property is read-only.

Events

No Events

Value

Name Type Description
(property) array DRM key systems
(property)[#] string An identifier of a key system

The drm system argument shall be passed as the index to the property, e.g. OCDM.1.keysystems@PlayReady.

Errors

Code Message Description
30 ERROR_BAD_REQUEST Invalid DRM name

Example

Get Request

{
    "jsonrpc": "2.0",
    "id": 42,
    "method": "OCDM.keysystems@PlayReady"
}

Get Response

{
    "jsonrpc": "2.0",
    "id": 42,
    "result": [
        "com.microsoft.playready"
    ]
}