Use an external PlayReady license URL

By default, MK.IO will take care of the license delivery for your content, but in some cases you might need to use a separate license server to deliver those license.

MK.IO supports this capability for PlayReady licenses and it is as simple as creating a new streaming policy and assign a customLicenseAcquisitionUrlTemplate value for PlayReady.

Below is a sample curl request doing just that:

curl --request PUT \
     --url https://api.io.mediakind.com/api/ams/project_name/streamingPolicies/policy_name \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-mkio-token: "mk.io token" \
     --data '
{
  "properties": {
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": false
      },
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        }
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(contentkey:eNqVnXrElmo2NSsn7IXeEA==,kid:e13a7861-d8cc-4284-9245-7c835ebde9f0)"
        }
      }
    }
  }
}
'

The streaming policy can then be used when preparing the asset for streaming in the Stream Live and VOD assets section

This capability can be combined with the use of Explicit Content Key to build a complete DRM workflow out of MK.IO.