mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
b83b4120f4
This PR parses default_KID from ContentProtection in the manifest and constructs a PSSH box from it to feed to the ClearKey CDM only if clear key content is detected.
Example:
```
<ContentProtection
schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"
cenc:default_KID="9eb4050d-e44b-4802-932e-27d75083e266" />
<ContentProtection
value="ClearKey1.0" schemeIdUri="urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e">
<clearkey:Laurl Lic_type="EME-1.0">https://drm-clearkey-testvectors.axtest.net/AcquireLicense</clearkey:Laurl>
</ContentProtection>
```
PSSH is based on https://www.w3.org/TR/eme-initdata-cenc/
Tested content:
https://media.axprod.net/TestVectors/v7-MultiDRM-SingleKey/Manifest_1080p_ClearKey.mpd