// Proactive individualization is used to configure playready to the selected
 // hardware/software mode
 void Individualize()
 {
     PlayReadyHelpers.ProactiveIndividualization(() => {
         modeSelected = true;
         CmdPlayMovie.RaiseCanExecuteChanged();
         CmdUseHardware.RaiseCanExecuteChanged();
         CmdUseSoftware.RaiseCanExecuteChanged();
     });
 }
예제 #2
0
        /// A content header is required to make a proactive license request.
        /// The header needs at minimum a KeyId and a License URL.
        /// Additionally you set a custom data property which will be passed in the signed
        /// section of the license request for use by the service.
        void GetLicense(Guid kid)
        {
            var laURL         = new Uri(licenseUrl);
            var customData    = "token:12345";
            var contentHeader = new PlayReadyContentHeader(kid, "", PlayReadyEncryptionAlgorithm.Aes128Ctr, laURL, laURL, customData, Guid.Empty);

            PlayReadyHelpers.ProactiveLicenseAcquisition(contentHeader, () => {
                CmdPlayMovie.RaiseCanExecuteChanged();
                CmdStopMovie.RaiseCanExecuteChanged();
            });
        }