Skip to main content

Protect a Video

Extend your encoding job with DRM protection using DRM Managed Mode. The Encoding Service contacts the Key Service on your behalf to acquire encryption keys.

1. Get DRM credentials​

In Axinom Portal, go to My Mosaic / DRM and click "Acquire Credentials".

Caution

Store the generated Management Key securely — it cannot be recovered if lost.

You will need:

  • Key Service Management API URL
  • Key Service Tenant ID
  • Key Service Management Key
  • Key Service Key Seed ID

2. Add DRM settings to your job request​

Add the following to the ContentProcessing element:

{
"ContentProcessing": {
"DrmProtection": "Managed",
"DrmManaged": {
"ApiUrl": "<Key Service Management API URL>",
"TenantId": "<Key Service Tenant ID>",
"ManagementKey": "<ENCRYPTED Management Key>",
"KeySeedId": "<Key Seed ID>",
"MultiKey": false,
"Proxy": false,
"KeysProtection": "Encrypted"
}
}
}

Encrypt ManagementKey using the Credentials Protection Tool before adding it to the request.

3. Run encoding and store the key ID​

Submit the job as described in Encode a Video. The response will include a KeyId:

{
"JobId": "6a062671-596a-4f09-acfc-0ab800f9e3f1",
"ExternalId": "<job_reference_id>",
"ExternalType": "movie",
"KeyId": "5a601de9-6075-461b-955c-0a155b93b0d3"
}

Store this KeyId — the Axinom DRM License Service uses it to reconstruct the encryption key (KeySeed model).

4. Play the protected video​

Play your protected video as described in Play an existing DRM-protected video, using your DASH manifest URL and the KeyId from above.

See also​

Was this page helpful?