This project is read-only.

Downloading and Saving PlayReady contents

Topics: Windows Phone 8
May 5, 2014 at 2:26 PM
I have the following xaml
<mmppf:MediaPlayer x:Name="player" >
               <adaptive:AdaptivePlugin />
and at the page's load event
 player.Source = new Uri("",UriKind.Absolute);
 LicenseAcquirer aquirer = new LicenseAcquirer();
 aquirer.LicenseServerUriOverride = new Uri("", UriKind.Absolute);
 aquirer.AcquireLicenseCompleted += aquirer_AcquireLicenseCompleted;
 player.LicenseAcquirer = aquirer;
and the aquirer_AcquireLicenseCompleted method
if (e.Error != null)
        // take appropriate action.  Might be retrying for instance.
else if (e.Cancelled)
     // take appropriate action.  Might be nothing.
      //  We acquired the license successfully, go ahead and download
      //  the content.  Note the service decided to stash the content 
      //  url in the LicenseAcquirer response custom data.
      string contentAcquisitionUrl = e.ResponseCustomData;
      System.Diagnostics.Debug.WriteLine("Content Acquisation url is: "+contentAcquisitionUrl);
My question comes directly from the aquirer_AcquireLicenseCompleted method, as you see, i was trying to retrieve the url of the content for downloading. Actually, the content has a persistent license that will expire in one day, users can download the video to watch later offline. How can this be done?