Skip to content

rhlbenjamin/azure-media-services-samples

 
 

Repository files navigation

We are no longer updating this repository, please go to https://github.com/AzureMediaServicesSamples for most updated sample code.

Azure-Media-Services-Samples

The Azure-Media-Services-Samples repository contains the following Azure Media Services samples.

PlayReadyDynamicEncryptAndKeyDeliverySvc

Microsoft Azure Media Services enables you to deliver MPEG-DASH, Smooth Streaming, and Http-Live-Streaming (HLS) streams protected with Microsoft PlayReady DRM. Media Services also provides a service for delivering Microsoft PlayReady licenses. The AESDynamicEncryptionAndKeyDeliverySvc sample contains the code that does the following:

  • Configures Media Services PlayReady license delivery service with the rights and restrictions that you want for the PlayReady DRM runtime to enforce when a user is trying to play back protected content.
  • Configures the delivery policy for your asset in order to enable dynamic encryption.

The Using PlayReady Dynamic Encryption and License Delivery Service explains relevant concepts, it also explains how all the parts of the AESDynamicEncryptionAndKeyDeliverySvc sample work.

AESDynamicEncryptionAndKeyDeliverySvc

Media Services enables you to protect your content with AES encryption. Media Services also provides the Key Delivery service that delivers encryption keys to authorized users. If you want for Media Services to encrypt an asset, you need to associate an encryption key with the asset and also configure authorization policies for the key. When a stream is requested by a player, Media Services uses the specified key to dynamically encrypt your content using AES encryption. To decrypt the stream, the player will request the key from the key delivery service. To decide whether or not the user is authorized to get the key, the service evaluates the authorization policies that you specified for the key.

The AESDynamicEncryptionAndKeyDeliverySvc sample contains the code that does the following:

  • Configure the key delivery service with authorization policies so that only authorized clients could receive the encryption keys.
  • Configures the delivery policy for your asset in order to enable dynamic encryption.

For a detailed explanation about relevant concepts and how the sample works, see Using AES-128 Dynamic Encryption and Key Delivery Service.

PlayReadyStaticEncryptAndKeyDeliverySvc

There are occasions when you need to use static encryption instead of dynamic encryption (for information about static vs. dynamic encryption, see Dynamic Encryption vs. Static Encryption with Azure Media Services).

The PlayReadyStaticEncryptAndKeyDeliverySvc sample contains code that uses static encryption to protect your content with PlayReady.

The following article has explanations related to this sample. Using Static Encryption to Protect Smooth Stream and MPEG DASH with PlayReady

AMSLiveStreaming

Microsoft Azure Media Services now enables you to stream your content live. The AMSLiveStreaming contains the code that you can use when performing tasks related to live streaming.

The Working with Azure Media Services Live Streaming topic contains conceptual information related to live streaming with Media Services.

The Creating a Live Streaming Application with the Media Services SDK for .NET topic contains information related to the code in the AMSLiveStreaming sample.

About

This repository is deprecated, please find the new one here:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 97.3%
  • PowerShell 1.4%
  • HTML 1.0%
  • JavaScript 0.3%
  • Smalltalk 0.0%
  • CSS 0.0%