POST api/SpekeV2?overrideKeyIds={overrideKeyIds}
Generates CPIX according to the SPEKEv2 CPIX key exchange protocol.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
overrideKeyIds | boolean |
Default value is False |
Body Parameters
None.
Request Formats
application/cpix+xml
Sample:
<?xml version="1.0" encoding="UTF-8"?> <cpix:CPIX contentId="cenc_test_001" version="2.3" xmlns:cpix="urn:dashif:org:cpix" xmlns:pskc="urn:ietf:params:xml:ns:keyprov:pskc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:enc="http://www.w3.org/2001/04/xmlenc#"> <cpix:ContentKeyList> <cpix:ContentKey kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" explicitIV="OFj2IjCsPJFfMAxmQxLGPw==" commonEncryptionScheme="cenc"></cpix:ContentKey> <cpix:ContentKey kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" explicitIV="L6jzdXrXAFbCJGBuMrrKrG==" commonEncryptionScheme="cenc"></cpix:ContentKey> </cpix:ContentKeyList> <cpix:DRMSystemList> <cpix:DRMSystem kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cpix:PSSH /> <cpix:HLSSignalingData playlist="media"></cpix:HLSSignalingData> <cpix:HLSSignalingData playlist="master"></cpix:HLSSignalingData> </cpix:DRMSystem> <cpix:DRMSystem kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cpix:PSSH /> <cpix:HLSSignalingData playlist="media"></cpix:HLSSignalingData> <cpix:HLSSignalingData playlist="master"></cpix:HLSSignalingData> </cpix:DRMSystem> <cpix:DRMSystem kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" systemId="9a04f079-9840-4286-ab92-e65be0885f95"> <cpix:PSSH /> </cpix:DRMSystem> <cpix:DRMSystem kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" systemId="9a04f079-9840-4286-ab92-e65be0885f95"> <cpix:PSSH /> </cpix:DRMSystem> </cpix:DRMSystemList> <cpix:ContentKeyUsageRuleList> <cpix:ContentKeyUsageRule kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" intendedTrackType="VIDEO"> <cpix:VideoFilter /> </cpix:ContentKeyUsageRule> <cpix:ContentKeyUsageRule kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" intendedTrackType="AUDIO"> <cpix:AudioFilter /> </cpix:ContentKeyUsageRule> </cpix:ContentKeyUsageRuleList> </cpix:CPIX>
Response Information
Resource Description
None.
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- OK (200) - CPIX was successfully generated.
- BadRequest (400) - CPIX generation failed due to invalid input data.
- BadRequest (400) - Missing SPEKE version.
- BadRequest (400) - Unsupported SPEKE version.
Response Formats
application/cpix+xml
Sample:
<?xml version="1.0" encoding="utf-8"?> <cpix:CPIX contentId="cenc_test_001" version="2.3" xmlns:cpix="urn:dashif:org:cpix" xmlns:pskc="urn:ietf:params:xml:ns:keyprov:pskc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:enc="http://www.w3.org/2001/04/xmlenc#"> <cpix:ContentKeyList> <cpix:ContentKey kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" explicitIV="OFj2IjCsPJFfMAxmQxLGPw==" commonEncryptionScheme="cenc"> <cpix:Data> <pskc:Secret> <pskc:PlainValue>gASV+WO60djSV7jJqJUuIQ==</pskc:PlainValue> </pskc:Secret> </cpix:Data> </cpix:ContentKey> <cpix:ContentKey kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" explicitIV="L6jzdXrXAFbCJGBuMrrKrA==" commonEncryptionScheme="cenc"> <cpix:Data> <pskc:Secret> <pskc:PlainValue>HwX+cWrlPIxidU3zx0zNmQ==</pskc:PlainValue> </pskc:Secret> </cpix:Data> </cpix:ContentKey> </cpix:ContentKeyList> <cpix:DRMSystemList> <cpix:DRMSystem systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" kid="0f083e4e-b831-4a3d-917e-ce78076e54aa"> <cpix:PSSH>AAAAOHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABgSEA8IPk64MUo9kX7OeAduVKpI49yVmwY=</cpix:PSSH> <cpix:HLSSignalingData playlist="master">I0VYVC1YLVNFU1NJT04tS0VZOk1FVEhPRD1TQU1QTEUtQUVTLUNUUixVUkk9ImRhdGE6dGV4dC9wbGFpbjtiYXNlNjQsQUFBQU9IQnpjMmdBQUFBQTdlK0xxWG5XU3M2anlDZmMxUjBoN1FBQUFCZ1NFQThJUGs2NE1VbzlrWDdPZUFkdVZLcEk0OXlWbXdZPSIsS0VZSUQ9MHgwRjA4M0U0RUI4MzE0QTNEOTE3RUNFNzgwNzZFNTRBQSxLRVlGT1JNQVQ9InVybjp1dWlkOmVkZWY4YmE5LTc5ZDYtNGFjZS1hM2M4LTI3ZGNkNTFkMjFlZCIsS0VZRk9STUFUVkVSU0lPTlM9IjEi</cpix:HLSSignalingData> <cpix:HLSSignalingData playlist="media">I0VYVC1YLUtFWTpNRVRIT0Q9U0FNUExFLUFFUy1DVFIsVVJJPSJkYXRhOnRleHQvcGxhaW47YmFzZTY0LEFBQUFPSEJ6YzJnQUFBQUE3ZStMcVhuV1NzNmp5Q2ZjMVIwaDdRQUFBQmdTRUE4SVBrNjRNVW85a1g3T2VBZHVWS3BJNDl5Vm13WT0iLEtFWUlEPTB4MEYwODNFNEVCODMxNEEzRDkxN0VDRTc4MDc2RTU0QUEsS0VZRk9STUFUPSJ1cm46dXVpZDplZGVmOGJhOS03OWQ2LTRhY2UtYTNjOC0yN2RjZDUxZDIxZWQiLEtFWUZPUk1BVFZFUlNJT05TPSIxIg==</cpix:HLSSignalingData> </cpix:DRMSystem> <cpix:DRMSystem systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0"> <cpix:PSSH>AAAAOHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABgSEAQf3Tp/XkhIp8tl6XdY6aBI49yVmwY=</cpix:PSSH> <cpix:HLSSignalingData playlist="master">I0VYVC1YLVNFU1NJT04tS0VZOk1FVEhPRD1TQU1QTEUtQUVTLUNUUixVUkk9ImRhdGE6dGV4dC9wbGFpbjtiYXNlNjQsQUFBQU9IQnpjMmdBQUFBQTdlK0xxWG5XU3M2anlDZmMxUjBoN1FBQUFCZ1NFQVFmM1RwL1hraElwOHRsNlhkWTZhQkk0OXlWbXdZPSIsS0VZSUQ9MHgwNDFGREQzQTdGNUU0ODQ4QTdDQjY1RTk3NzU4RTlBMCxLRVlGT1JNQVQ9InVybjp1dWlkOmVkZWY4YmE5LTc5ZDYtNGFjZS1hM2M4LTI3ZGNkNTFkMjFlZCIsS0VZRk9STUFUVkVSU0lPTlM9IjEi</cpix:HLSSignalingData> <cpix:HLSSignalingData playlist="media">I0VYVC1YLUtFWTpNRVRIT0Q9U0FNUExFLUFFUy1DVFIsVVJJPSJkYXRhOnRleHQvcGxhaW47YmFzZTY0LEFBQUFPSEJ6YzJnQUFBQUE3ZStMcVhuV1NzNmp5Q2ZjMVIwaDdRQUFBQmdTRUFRZjNUcC9Ya2hJcDh0bDZYZFk2YUJJNDl5Vm13WT0iLEtFWUlEPTB4MDQxRkREM0E3RjVFNDg0OEE3Q0I2NUU5Nzc1OEU5QTAsS0VZRk9STUFUPSJ1cm46dXVpZDplZGVmOGJhOS03OWQ2LTRhY2UtYTNjOC0yN2RjZDUxZDIxZWQiLEtFWUZPUk1BVFZFUlNJT05TPSIxIg==</cpix:HLSSignalingData> </cpix:DRMSystem> <cpix:DRMSystem systemId="9a04f079-9840-4286-ab92-e65be0885f95" kid="0f083e4e-b831-4a3d-917e-ce78076e54aa"> <cpix:PSSH>AAAB5HBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAcTEAQAAAQABALoBPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBUAGoANABJAEQAegBHADQAUABVAHEAUgBmAHMANQA0AEIAMgA1AFUAcQBnAD0APQA8AC8ASwBJAEQAPgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cpix:PSSH> </cpix:DRMSystem> <cpix:DRMSystem systemId="9a04f079-9840-4286-ab92-e65be0885f95" kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0"> <cpix:PSSH>AAAB5HBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAcTEAQAAAQABALoBPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBPAHQAMABmAEIARgA1AC8AUwBFAGkAbgB5ADIAWABwAGQAMQBqAHAAbwBBAD0APQA8AC8ASwBJAEQAPgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cpix:PSSH> </cpix:DRMSystem> </cpix:DRMSystemList> <cpix:ContentKeyUsageRuleList> <cpix:ContentKeyUsageRule kid="0f083e4e-b831-4a3d-917e-ce78076e54aa" intendedTrackType="VIDEO"> <cpix:VideoFilter /> </cpix:ContentKeyUsageRule> <cpix:ContentKeyUsageRule kid="041fdd3a-7f5e-4848-a7cb-65e97758e9a0" intendedTrackType="AUDIO"> <cpix:AudioFilter /> </cpix:ContentKeyUsageRule> </cpix:ContentKeyUsageRuleList> </cpix:CPIX>