Hi,
You use the InterpretContentProtection callback to set the DRM information, which includes the PSSH override, for example:
var initPlayer() {
var vs = new shaka.player.DashVideoSource(
mpdUrlString, interpretContentProtection, null, null);
player = new shaka.player.Player(vs);
return player.load(vs);
};
var interpretContentProtection(schemeIdUri, contentProtectionElement) {
// Widevine:
if (schemeIdUri.toLowerCase() ==
'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed') {
var initData = { 'initData': EXPLICIT_PSSH,
'initDataType': 'cenc'
};
return [{ 'keySystem': 'com.widevine.alpha',
'licenseServerUrl': LICENSE_SERVER_URL,
'initData': initData
}];
}
return null;
};
If you have further issues, please run in uncompiled mode with verbose logging on (e.g, by add ?v to the demo application's URL) or by calling shaka.log.setLevel(shaka.log.Level.V1) in your own application.