The sample shows how to use Azure Media Services to dynamically encrypt your content with PlayReady and Widevine DRMs.
For detailed information about the sample, see Using PlayReady and/or Widevine Dynamic Common Encryption with .NET
To run this sample you will need:
This sample demonstrates functionality that was introduced in Azure Media Services SDK for .Net -Version 3.5.2 (specifically, the ability to define a Widevine license template and request a Widevine license from Azure Media Services). The following Nuget package command was used to install the package:
PM> Install-Package windowsazure.mediaservices -Version 3.5.2
Update the appSettings section of the app.config file with values of your Azure Media Services account.
<appSettings> <add key="MediaServicesAccountName" value="MediaServicesAccountName" /> <add key="MediaServicesAccountKey" value="MediaServicesAccountKey" /> <add key="Issuer" value="http://testacs.com" /> <add key="Audience" value="urn:test" /> </appSettings>
Get at least one streaming unit for the streaming endpoint from which you plan to delivery your content. For more information, see: configure streaming endpoints
Clean the solution, rebuild the solution, and run it.
For more information, see Using PlayReady and/or Widevine Dynamic Common Encryption with .NET.
You can view AMS learning paths here: