Giter Site home page Giter Site logo

farukc / azure-media-services-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-media-services-samples

0.0 1.0 0.0 57.27 MB

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

Home Page: https://github.com/AzureMediaServicesSamples

C# 97.18% PowerShell 1.44% CSS 0.01% ASP 0.01% HTML 1.01% JavaScript 0.33% Smalltalk 0.04%

azure-media-services-samples's Introduction

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.

azure-media-services-samples's People

Contributors

juliako avatar gtrifonov avatar mingfeiy avatar willzhan avatar johndeu avatar xstof avatar

Watchers

Faruk Celik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.