# CommonEncryptionCenc

## clearKeyEncryptionConfiguration

**Type**: object [ClearKeyEncryptionConfiguration](https://docs.mediakind.com/api-reference/media-api/schemas/clearkeyencryptionconfiguration)

**Description**: Clear key configuration

- **customKeysAcquisitionUrlTemplate**: string Optional  
  The custom license acquisition URL template for a Clear Key license delivery service.

- **clearTracks**: list of objects [StreamingPolicyTrackSelection](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicytrackselection) Optional  
  This represents which tracks should _not_ be encrypted.

- **trackSelections**: list of objects [StreamingPolicyTrackPropertyCondition](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicytrackpropertycondition) Optional  
  track selections is used to specify a set or a subset of track for selection by the streaming policy.

- **operation**: enum Required  
    Track property operation. Only equality is supported.  
    Allowed values: Unknown, Equal

- **property**: enum Required  
    Track property type  
    Allowed values: Unknown, FourCC

- **value**: string Optional  
    Track property value

- **contentKeys**: object [StreamingPolicyContentKeys](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicycontentkeys) Optional  
  Content keys used by the streaming policy.

- **defaultKey**: object [DefaultKey](https://docs.mediakind.com/api-reference/media-api/schemas/defaultkey) Optional  
    Default content key used by the encryption.

- **label**: string Optional  
      Labels are a potential matching field for selecting a content key via a streaming locator.
    
    - **policyName**: string Optional  
      Policy used by the key.
  
  - **keyToTrackMappings**: list of objects [StreamingPolicyContentKey](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicycontentkey) Optional  
    List of content keys used by the key. Used to assign different keys to different tracks. For instance, using widevine L3 for SD and L1 for HD.

- **label**: string Optional  
      Labels are a potential matching field for selecting a content key via a streaming locator.
    
    - **policyName**: string Optional  
      Policy used by the key.
  
  - **tracks**: list of objects [StreamingPolicyTrackSelection](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicytrackselection) Optional  
    This represents which tracks should be encrypted.

- **operation**: enum Required  
        Track property operation. Only equality is supported.  
        Allowed values: Unknown, Equal

- **property**: enum Required  
        Track property type  
        Allowed values: Unknown, FourCC

- **value**: string Optional  
        Track property value

- **drm**: object [CencDrmConfiguration](https://docs.mediakind.com/api-reference/media-api/schemas/cencdrmconfiguration) Optional  
  DRM configuration

- **playReady**: object [StreamingPolicyPlayReadyConfiguration](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicyplayreadyconfiguration) Optional  
    PlayReady configuration

- **customLicenseAcquisitionUrlTemplate**: string Optional  
      The custom license acquisition URL template for a PlayReady license delivery service.
    
    - **playReadyCustomAttributes**: string Optional  
      The custom attributes for PlayReady.
  
  - **widevine**: object [StreamingPolicyWidevineConfiguration](https://docs.mediakind.com/api-reference/media-api/schemas/streamingpolicywidevineconfiguration) Optional  
    Widevine configuration

- **customLicenseAcquisitionUrlTemplate**: string Optional  
      The custom license acquisition URL template for a Widevine license delivery service.

- **enabledProtocols**: object [EnabledProtocols](https://docs.mediakind.com/api-reference/media-api/schemas/enabledprotocols) Optional  
  Enabled protocols. This is the set of protocols (dash, download, and hls) that will be delivered with common encryption.

- **dash**: boolean Required  
    Enable Dash protocol
  
  - **download**: boolean Required  
    Enable download protocol
  
  - **hls**: boolean Required  
    Enable HLS protocol
  
  - **smoothStreaming**: boolean Required  
    Smooth streaming is not supported and the value of this field is ignored.
