dash.js
dash.js copied to clipboard
General Question Parsing License Key from the manifest (MPD file)
General Question
I'm trying to play the DRM protected MPD Content. The content protection block in the MPD consists of CENC PSSH block for PlayReady and LA URL path for Widevine. I want the dash js player to detect appropriate DRM specified in the prodata without specifying the license server url path.
For Example: If we specify com.microsoft.playready in the prodata. I want the player to parse the CENC PSSH block from the MPD and play the content.
If we specify com.widevine.alpha in the prodata. I want the Player to parse the LA URL path from the MPD and play the content.
Pls let me know the syntax for the player to pick the appropriate DRM block from the content protection block.
@videojsAP, do you mean create an empty com.widevine.alpha (or equivalent playready one) obj in protData and then dash.js to get widevine properties from content protection element of the manifest? Just trying to understand your point.
Thanks!
Yes. Thats correct.
There is nothing in dash.js to support that although seems quite reasonably. The idea would be using what is the defined in protData and, in case it lacks some properties try to get them from ContentProtection element.