Azure Media Services Content Protection code samples

Media Services logo v3


Warning

Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.

This article is a listing of code samples for Content Protection.

Note

Google Widevine content protection services are currently unavailable in the Microsoft Azure regions operated by 21Vianet.

Basic content protection

Deliver basic AESClearKey content protection and streaming

This sample demonstrates how to dynamically encrypt your content with AES-128.

.NET NodeJS Python

Deliver basic Playready DRM content protection and streaming

This sample demonstrates how to encode and stream using PlayReady DRM.

.NET Node.JS Python

Offline content protection

Deliver offline Fairplay

This sample demonstrates how to dynamically encrypt your content with FairPlay DRM and play the content without requesting a license from license service.

.NET Node.JS not yet available Python not yet available

Deliver offline PlayReady

This sample demonstrates how to dynamically encrypt your content with PlayReady DRM and play the content without requesting a license from license service.

.NET Node.JS not yet available Python not yet available