Skip to main content
Version: 11.7.0

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 for an implementation reference sample.

Head to our page on DRM 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, alongside guides on how to integrate and use them.

The Microsoft Azure integration can be found here.

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.

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