Defines a decryption key.

Optionally specifies the key ID for the given key. This is needed in multi-key scenarios as it allows the player to select the correct key when audio/video tracks are encrypted with different keys.

interface ClearKeyDRMConfigEntry {
    key: string;
    kid?: string;
}

Properties

Properties

key: string

The key in hex string format.

Example: 100b6c20940f779a4589152b57d2dacb

kid?: string

The key ID in hex string format.

Example: eb676abbcb345e96bbcf616630f1a3da

Optional in single-key scenarios where all tracks of the content are encrypted with one single key.

Required in multi-key scenarios to allow key selection when tracks are encrypted with different keys.