Skip to content

ClearkeyDRM with embedded kid:value license key not working

Created by: Murmur

See this topic for more discussion https://github.com/Dash-Industry-Forum/dash.js/pull/2770

ClearkeyDRM does not work with an embedded key:value key in a javascript. Using licenseurl.php script call works with the same manifest content.

Test manifest for ClearkeyDRM https://m.dtv.fi/dash/dasherh264v2/drm/manifest_clearkey.mpd Test manifest for NoDRM(free) https://m.dtv.fi/dash/dasherh264v2/manifest.mpd

ClearkeyDRM(embedded key:value license key), not working https://m.dtv.fi/dash/index_clearkey2b.html?video=21 ClearkeyDRM(laurl php script license key), works ok https://m.dtv.fi/dash/index_clearkey2.html?video=21 NoDRM(free), works ok https://m.dtv.fi/dash/index_clearkey2.html?video=2f

This is @nicosang comment about the possible problem.

From: @nicosang I'm able to play your first stream by adding this line : if (initData.constructor === Uint8Array) { in function createKeySession of ProtectionModel_21Jan2015 in order to not take into account the last encrypted event with a strange initData value. So, it means the fix just above is not efficient enough. Nico