# Microsoft Azure on Android

> **Warning**
>
> Azure Media Services has been retired since June 30th, 2024.

This article describes how to configure Microsoft Azure DRM with THEOplayer. Head to [Azure Media Services 3rd Party Player Samples - THEOplayer](https://github.com/Azure-Samples/media-services-3rdparty-player-samples/tree/master/docs/THEOplayer) for an implementation reference sample.

Head to our page on [DRM](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/introduction.md) for more general information.

## Integration

We provide open-source DRM integrations which are easy to maintain and allow for a modular approach. You can find them in the [DRM integration samples repository](https://github.com/THEOplayer/samples-drm-integration), alongside guides on how to integrate and use them.

The Microsoft Azure integration can be found [here](https://github.com/THEOplayer/samples-drm-integration/tree/master/android/app/src/main/java/com/theoplayer/contentprotectionintegration/integration/azuredrm).

## Pre-integration

> **Note**
>
> When integrating DRM for the first time or updating your integration, the DRM integration described above is preferred over the pre-integration below.

```java
DRMConfiguration drmConfiguration = new AzureDRMConfiguration.Builder("<CERTIFICATE_URL>", "<TOKEN>")
    .widevine(
        new KeySystemConfiguration("<LICENSE_KEY_URL_WIDEVINE>")
    )
    .build();
TypedSource typedSource = new TypedSource.Builder()
    .src("<DASH_STREAM_URL>")
    .drm(drmConfiguration)
    .build();
SourceDescription sourceDescription = SourceDescription.Builder.sourceDescription()
    .sources(typedSource)
    .build();
theoplayer.getPlayer().setSource(sourceDescription);
```

## Resources

* <https://azure.microsoft.com/nl-nl/services/media-services/content-protection/>

## Related articles

* [DoveRunner](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/doverunner.md)
* [BuyDRM KeyOS](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/buydrm-keyos.md)
* [Arris Titanium](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/arris-titanium.md)
* [Uplynk](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/uplynk.md)
* [Xstream](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/xstream.md)
* [Vualto VuDRM](https://docs-preview.optiview.dolby.com/pr-861/theoplayer/how-to-guides/android/drm/vualto-vudrm.md)
* [Azure Media Services - THEOplayer Implementation Sample](https://github.com/Azure-Samples/media-services-3rdparty-player-samples/tree/master/docs/THEOplayer)
