1.2.0 ENABLE.drm

Methods

static ENABLE.drm.getProvisionDeviceId () {Object}

Return the String set by web application via calling setProvisionDeviceId()

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.NOT_READY
result String String set by web application, return undefine when not set

static ENABLE.drm.getWidevineDeviceId () {Object}

Return base64 encoded String of the device unique identifier is established during device provisioning and
provides a means of uniquely identifying each device for Widevine.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.NOT_SUPPORT
result String Base64 encoded String of the device unique identifier

static ENABLE.drm.setProvisionDeviceId (device_id) {Object}

Set the String will be appended to DASH server URL (encrypting_server) with the key deviceId

encrypting_server = "https://www.widevine.com/provision";
setProvisionDeviceId("33-123456");
The final encrypting_server will be "https://www.widevine.com/provision?deviceId=33-123456"
Name Type Description
device_id String

device id for server to identify device

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.INVALID_ARGUMENT