The ChinaDRM client supports the CENC standard AES algorithm (generally supporting the cbcs mode algorithm), but it should be noted that the DRM description information format (i.e. pssh format) and DRM license protocol between ChinaDRM and widevine are different. After the video and audio application obtains the PSSH in the widevine stream index file,
Processing method 1: The video and audio applications should generate the ChinaDRM format PSSH by widevine PSSH and then do subsequent processing, such as encapsulating the license request, requesting the ChinaDRM license and processing the license. Note that the base64string code of the keyId resolved from widevine PSSH can be used as the contentId of ChinaDRM.
Processing mode 2: The video and audio application directly transmits widevine PSSH to the ChinaDRM client, the ChinaDRM client encapsulates the license request and the video and audio application sends it to the ChinaDRM license server. After receiving the license request, the ChinaDRM license server obtains widevine PSSH from the contentIDs field in the request, parses the keyId from it and obtains the keyValue from key management server, thereby encapsulating the ChinaDRM license response. The base64string code of the keyId can be used as the contentId of ChinaDRM. Mode 2 relies on the ChinaDRM client to support the parameter of widevine PSSH.
ChinaDRM multiplexes Fairplay encrypted stream (only using CENC cbcs mode encryption) in the same way.