GithubHelp home page GithubHelp logo

isabella232 / media-services-dotnet-dynamic-encryption-with-fairplay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeroinfinite/media-services-dotnet-dynamic-encryption-with-fairplay

0.0 0.0 0.0 3.72 MB

The sample shows how to use Azure Media Services to dynamically encrypt your content with Apple FairPlay.

License: MIT License

C# 100.00%

media-services-dotnet-dynamic-encryption-with-fairplay's Introduction

page_type languages products description urlFragment
sample
csharp
azure
Azure Media Services enables your to dynamically encrypt your HTTP Live Streaming (HLS) content using Apple FairPlay.
media-services-dotnet-dynamic-encryption-with-fairplay

Stream your HLS content Protected with Apple FairPlay using Azure Media Services v2

NOTE

You can find the latest and most extensive Media Services v3 .NET samples in the Azure Media Services v3 repository.

Overview

Azure Media Services enables your to dynamically encrypt your HTTP Live Streaming (HLS) content using Apple FairPlay. When encrypting with FairPlay, individual video and audio samples are encrypted using the AES-128 CBC mode. FairPlay Streaming (FPS) is integrated into the device operating systems, with native support on iOS and Apple TV. Safari on OS X enables FPS using Encrypted Media Extensions (EME) interface support.

This sample shows you how to configure Azure Media Services to stream your content protected with FairPlay. It also shows how to specify to deliver the FairPlay licenses to your clients.

For detailed description of this sample, see this article.

How To Run This Sample

To run this sample you will need:

  • Visual Studio
  • An Azure subscription
  • Latest Azure Media Services .NET SDK (which will be installed when you re-build the project).

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 Use Azure Media Services to Stream your HLS content Protected with Apple FairPlay.

More information

You can view AMS learning paths here:

media-services-dotnet-dynamic-encryption-with-fairplay's People

Contributors

acomsmpbot avatar juliako avatar v-hearya 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.