New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DASH: Indicate license acquisition url in mpd for clearkey content. #1197
Comments
Hi @sr1990 i am also exploring same license server option |
@sr1990 that sounds like a reasonable approach, are you planning to implement this? |
Hey @cosmin, for the above approach I can think of the following steps:
Declare the flag after
Also a better approach would be to create ClearKeyKeySource similar to WidevineKeySource and add a flag to enable clearkey encryption --enable_clear_key_encryption When the packager parameters are parsed at shaka-packager/packager/app/packager_main.cc Line 365 in 84009d8
and while creating encryption key source at shaka-packager/packager/packager.cc Line 832 in 84009d8
in Packager::Initialize, create and fetch keys using ClearKeyKeySource. For fetching the keys, ClearKeyKeySource needs to send the POST request for each/all variant to the clear key license server as per https://w3c.github.io/encrypted-media/#clear-key-request-format. I can think of the following scenarios:
We can start with the first approach for users who prefer avoiding the packager's license server request overhead. It's simpler to implement – just substitute the ContentProtection element. |
As per https://dashif.org/guidelines/iop-v5/#part-6-content-protection-and-security - 8 Use of W3C Clear Key with DASH,
Example:
MPD url: https://media.axprod.net/TestVectors/v7-MultiDRM-SingleKey/Manifest_1080p_ClearKey.mpd
When player encounters the above ContentProtection elements,it will
This is already supported by shaka player, dash-if player and Android's Exoplayer.
Currently,
will add the following to mpd:
There is no way to indicate license acquisition url.
One possible solution to indicate a licence server of @licenseType EME-1.0 is to add a flag like --clear_key_license_url "https://drm-clearkey-testvectors.axtest.net/AcquireLicense".
Example:
when clear_key_license_url is present, ContentProtection element with schemeIdUri="urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b" should be skipped and
<ContentProtection value="ClearKey1.0" schemeIdUri="urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e">
should be added.@joeyparrish please let me know what you think.
The text was updated successfully, but these errors were encountered: