Modified version of the sample at http://code.msdn.microsoft.com/windowsapps/PlayReady-sample-for-bb3065e7#content