PlayReady WinJS sample and custom license request

Topics: Windows 8 JavaScript
Apr 20, 2013 at 8:10 PM
Hi,
Is it possible to customize the license request call in WinJS?

I need the capability of injecting custom headers during the license request call, like using a custom license acquirer on WinJS.

I'm able to do it in the C# sample but I need the same capability in WinJS.

Thank you very much,
Davide Zordan
Apr 27, 2013 at 9:30 AM
I've found a solution by replacing the default service request call with a custom one.

Thanks,
Davide
Jul 18, 2013 at 9:23 PM
Could you explain how did you solved this, please?

Thanks,
Daniel
Jul 19, 2013 at 7:17 PM
Edited Jun 12, 2014 at 1:08 PM
Hi Daniel,
you can start with this sample http://code.msdn.microsoft.com/windowsapps/Simple-PlayReady-sample-5c1aefaf and then use the methods generateManualEnablingChallenge() / processManualEnablingResponse() of the service request. More details here: http://visualstudiogallery.msdn.microsoft.com/e02ccac7-f3eb-4b53-b11a-c657d5631483

A complete sample using generateManualEnablingChallenge() / processManualEnablingResponse() is also available here: http://code.msdn.microsoft.com/windowsapps/PlayReady-sample-for-bb3065e7

Cheers,
Davide