Support for Version 4.2.0.0 of playready WRMHeader?

296 views
Skip to first unread message

john....@verizondigitalmedia.com

unread,
Sep 7, 2017, 4:13:59 PM9/7/17
to Shaka Player Users
I been trying to update our WRMHeader syntax from 4.0.0.0 today to the 4.2.0.0 syntax, but it appears that Shaka can no longer generate license requests if I do this, as I get a "FAILED_TO_GENERATE_LICENSE_REQUEST" error when I attempt playback.  Switching back the 4.0.0.0 syntax results in generating and sending the license request.   

This suggests to me that Shaka might be cracking open the PRO object in the pssh/pro in the ContentProtection block, and trying to parse it before generating a license request.   Is that actually happening?  I would have thought that the format of the WRMHeader wouldn't have affected Shaka at all.  It seems like this stuff would be handled as an opaque blob by the player.  There is probably plenty I don't understand about what is going on there, but is there a good reason I cannot get a license request generated when using the 4.2.0.0 syntax?  Is there something shaka needs to change to support this?

From MS Documentation:

The v4.2 header has the following syntax.

        <WRMHEADER version="4.2.0.0" xmlns="http://schemas.microsoft.com/DRM/2007/03/PlayReadyHeader">
          <DATA>
              <PROTECTINFO>
                <KIDS>
                  <KID value=”base64-encoded guid” ALGID=”AESCTR” CHECKSUM=”base64-encoded value” />
                  <KID value=”base64-encoded guid” ALGID=”AESCTR” CHECKSUM=”base64-encoded value” />
                </KIDS>
              </PROTECTINFO>
              <LA_URL> URL for license acquisition WS </LA_URL>
              <LUI_URL>
                URL for Non-silent license acquisition web page
              </LUI_URL>
            <DS_ID> base64-encoded guid </DS_ID>
            <CUSTOMATTRIBUTES xmlns="">
              <mm:Publisher xmlns:mm="urn:schema-musicmogul-com"
                   <mm:Author>
                        Elvis Presley
                   </mm:Author>
                   <mm:CreationDate>
                        2015/08/21:12:00:00
                   </mm:CreationDate>
                </mm:Publisher>
            <CUSTOMATTRIBUTES>
            <DECRYPTORSETUP>ONDEMAND</DECRYPTORSETUP>
          </DATA>
        </WRMHEADER>

Joey Parrish

unread,
Sep 7, 2017, 4:26:34 PM9/7/17
to Shaka Player Users
Hi John,

We are not parsing the PlayReady PSSH.  We pass it directly to the browser.  FAILED_TO_GENERATE_LICENSE_REQUEST means we passed the PSSH to the browser and it was rejected.

What browser and version are you using?  Is WRMHeader 4.2 supported by that browser version?

Also, please check error.data[0] when you get this failure.  You should see an error string from the browser which might contain additional clues.

Thanks,
Joey


--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-player-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-player-users/7976feec-e0c9-4b0c-8583-717bf70a9523%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

john....@verizondigitalmedia.com

unread,
Sep 7, 2017, 5:21:31 PM9/7/17
to Shaka Player Users
Microsoft Edge 40.15063.0.0
Microsoft EdgeHTML 15.15063

Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST (SystemCode:0x80041108)

Is that SystemCode the error data you are referring too?  I wasn't sure how to print the error data out in the js console, but I would assume that this version of edge should have support.  

I guess there must be something I am doing wrong in generating the 4.2.0.0 header, although it seems pretty straightforward.  I will take another look there and see if I can figure out something.
To post to this group, send email to shaka-pla...@googlegroups.com.

Jacob Trimble

unread,
Sep 8, 2017, 1:04:44 PM9/8/17
to shaka-pla...@googlegroups.com
A quick search reveals that the code 0x80041108 means "The content header is not valid.".


To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages