Azure Media Services v3 tutorials

NOTE

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

Overview

The projects in this repository were created using Visual Studio 2017. They target netcoreapp2.0. These projects support the Azure Media Services v3 articles:

Project name Article
UploadEncodeAndStreamFiles/UploadEncodeAndStreamFiles.csproj Tutorial: Upload, encode, download, and stream videos
AnalyzeVideos/AnalyzeVideos.csproj Tutorial: Analyze videos with Media Services
EncryptWithDRM/EncryptWithDRM.csproj Use DRM dynamic encryption and license delivery service
EncryptWithAES/EncryptWithAES.csproj Use AES-128 dynamic encryption and the key delivery service

Prerequisites

To run samples in this repository, you need:

NuGet packages

The following NuGet packages were added to the project:

Package Description
Microsoft.Azure.Management.Media Azure Media Services SDK.
To make sure you are using the latest Azure Media Services package, check Microsoft.Azure.Management.Media.
Microsoft.Rest.ClientRuntime.Azure.Authentication ADAL authentication library for Azure SDK for NET
Microsoft.Extensions.Configuration.EnvironmentVariables Read configuration values from environment variables and local JSON files
Microsoft.Extensions.Configuration.Json Read configuration values from environment variables and local JSON files
WindowsAzure.Storage Storage SDK

To build and run each project in the solution

  • Clean and rebuild the solution.
  • Set the desired project as the Set as Startup project.
  • Add appropriate values to the appsettings.json configuration file. For more information, see Access APIs.

If you get the following error message, when first attempting to run a project, close VS and reopen it. Then, rebuild the solution.

VS 2017 error