Using PlayReady and/or Widevine Dynamic Common Encryption with .NET
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
How To Run This Sample
To run this sample you will need:
- Visual Studio
- An Azure subscription
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
Step 1: Clone or download this repository
Step 2: Update the app.config file
Update the appSettings section of the app.config file with appropriate values. For more information, see this topic.
<appSettings>
<add key="AMSAADTenantDomain" value="tenant"/>
<add key="AMSRESTAPIEndpoint" value="endpoint"/>
<add key="AMSClientId" value="id"/>
<add key="AMSClientSecret" value="secret"/>
<add key="Issuer" value="http://testacs.com" />
<add key="Audience" value="urn:test" />
</appSettings>
Step 3: Start a streaming endpoint
Make sure to start the streaming endpoint. For more information, see: streaming endpoints.
Step 4: Run the sample
Clean the solution, rebuild the solution, and run it.
About the code
For more information, see Using PlayReady and/or Widevine Dynamic Common Encryption with .NET.
More information
You can view AMS learning paths here:
Weitere Beispiele von Julia Kornich
- Encode and Deliver a Live Stream with Azure Media Services using .NET SDK
- Encode and Deliver Content on Demand with Azure Media Services using .NET SDK
- Copy blobs into an Azure Media Services asset
- Using Azure Media Services to Dynamically encrypt your assets with AES-128
- Use Azure Media Services to deliver PlayReady and/or Widevine licenses with .NET