A OCDM plugin for Thunder framework.
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].
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 |
The following properties are provided by the OCDM plugin:
OCDM interface properties:
| Property | Description |
|---|---|
| drms RO | Supported DRM systems |
| keysystems RO | DRM key systems |
Provides access to the supported DRM systems.
This property is read-only.
No Events
| 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 |
{
"jsonrpc": "2.0",
"id": 42,
"method": "OCDM.drms"
}{
"jsonrpc": "2.0",
"id": 42,
"result": [
{
"name": "PlayReady",
"keysystems": [
"com.microsoft.playready"
]
}
]
}Provides access to the DRM key systems.
This property is read-only.
No Events
| 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.
| Code | Message | Description |
|---|---|---|
| 30 | ERROR_BAD_REQUEST |
Invalid DRM name |
{
"jsonrpc": "2.0",
"id": 42,
"method": "OCDM.keysystems@PlayReady"
}{
"jsonrpc": "2.0",
"id": 42,
"result": [
"com.microsoft.playready"
]
}