AMP Android SDK: DRM Support

Document created by Orlando Sanchez Martinez Employee on Jun 7, 2017Last modified by Orlando Sanchez Martinez Employee on Jun 7, 2017
Version 2Show Document
  • View in full screen mode

This document is part of AMP Android SDK 

 

Using the EXO mode, Digital Rights Managment (DRM) protected playback is supported on Android 4.4 (API level 19) and higher.

All Android devices are required to support Widevine modular DRM (with L3 security, although many devices also support L1).

Some devices may support additional schemes such as PlayReady.

All Android TV devices support PlayReady.

See ExoPlayer's DRM

 

In AMP, to play a DRM protected stream, you proceed as usual, with a single modification. When preparing a resource, use as parameters:

  1. the video URL
  2. a com.akamai.media.exowrapper2.DrmScheme
  3. the URL of the license, or null if it doesn't apply

 

In code:

videoPlayerContainer.prepareResource(VIDEO_URL, DrmScheme.WIDEVINE, WIDEVINE_LICENSE_URL);

 

You can download a running Android Studio project that demonstrates this use case here.

 

You can also reach out to us at amp-sdk-support@akamai.com with any question or comment

 

 

This document is part of AMP Android SDK 

Attachments

    Outcomes