AMP - DRM

Document created by Herberth Alvarado Champion on Nov 15, 2017Last modified by Herberth Alvarado Champion on Dec 4, 2017
Version 1Show Document
  • View in full screen mode

Maintainer: Herberth Alvarado

This document is part of Adaptive Media Player Web User Guide

 

The Akamai Adaptive Media Player can work with various Digital Right Management providers. So far it has been tested against:

  • Widevine
  • Fairplay
  • PlayReady 
  • Verimatrix

 

Configuration:

To get the DRM feature to work, you will need to add a new block called "keys" into your configuration next to the "source" where you setup the streams, to specify from where to retrieve the Key. The player will use the appropriate key depending on the browser where it is being executed.

The different fields in the "keys" block are:

  • withCredentials
  • serverURL
  • cert
  • httpRequestHeaders
  • The vendor is the first value, for every key sub block. Some accepted values are:
    • com.widevine.alpha
    • com.microsoft.playready
    • com.apple.fps.1_0

 

media : {

   title : “DRM Sample”,

   poster : “../resources/images/space_alone.jpg”,

   source:[{

      src : dash_stream(format=mpd-time-csf)“,

      type : “application/dash+xml”,

      }, {

      src : “hls_stream.m3u8“,

      type : “application/x-mpegURL”,

   }],

   keys: {

      “com.widevine.alpha”: {

         withCredentials: false,

         serverURL: URL_to_the_DRM_server_provider_for_Widevine,

         httpRequestHeaders: {

         Authorization: “Bearer=” + eyJ1c2VySWQiOiIxMjM0NSIsInNlc3Npb25JZCI6ImV3b2dJQ0p3Y205bWFXeGxJaUE2SUhzS0lDQWdJQ0p3ZFhKamFHRnpaU0lnT2lCN0lIMEtJQ0I5TEFvZ0lDSnZkWFJ3ZFhSUWNtOTBaV04wYVc5dUlpQTZJSHNLSUNBZ0lDSmthV2RwZEdGc0lpQTZJR1poYkhObExBb2dJQ0FnSW1GdVlXeHZaM1ZsSWlBNklHWmhiSE5sTEFvZ0lDQWdJbVZ1Wm05eVkyVWlJRG9nWm1Gc2MyVUtJQ0I5TEFvZ0lDSnpkRzl5WlV4cFkyVnVjMlVpSURvZ1ptRnNjMlVLZlFvSyIsIm1lcmNoYW50IjoiY2FibGVsYWJzIn0K

      }

   },

   “com.microsoft.playready”: {

      withCredentials: false,

      serverURL: URL_to_the_DRM_server_provider_for_PlayReady,

      httpRequestHeaders: {

      Authorization: “Bearer=” + eyJ1c2VySWQiOiIxMjM0NSIsInNlc3Npb25JZCI6ImV3b2dJQ0p3Y205bWFXeGxJaUE2SUhzS0lDQWdJQ0p3ZFhKamFHRnpaU0lnT2lCN0lIMEtJQ0I5TEFvZ0lDSnZkWFJ3ZFhSUWNtOTBaV04wYVc5dUlpQTZJSHNLSUNBZ0lDSmthV2RwZEdGc0lpQTZJR1poYkhObExBb2dJQ0FnSW1GdVlXeHZaM1ZsSWlBNklHWmhiSE5sTEFvZ0lDQWdJbVZ1Wm05eVkyVWlJRG9nWm1Gc2MyVUtJQ0I5TEFvZ0lDSnpkRzl5WlV4cFkyVnVjMlVpSURvZ1ptRnNjMlVLZlFvSyIsIm1lcmNoYW50IjoiY2FibGVsYWJzIn0K

      }

   },

   “com.apple.fps.1_0”: {

      withCredentials: false,

      serverURL: URL_to_the_DRM_server_provider_for_FairPlay,

      cert: URL_to_the_DRM_Certificate_location,

      httpRequestHeaders: {

      Authorization: “Bearer=” + eyJ1c2VySWQiOiIxMjM0NSIsInNlc3Npb25JZCI6ImV3b2dJQ0p3Y205bWFXeGxJaUE2SUhzS0lDQWdJQ0p3ZFhKamFHRnpaU0lnT2lCN0lIMEtJQ0I5TEFvZ0lDSnZkWFJ3ZFhSUWNtOTBaV04wYVc5dUlpQTZJSHNLSUNBZ0lDSmthV2RwZEdGc0lpQTZJR1poYkhObExBb2dJQ0FnSW1GdVlXeHZaM1ZsSWlBNklHWmhiSE5sTEFvZ0lDQWdJbVZ1Wm05eVkyVWlJRG9nWm1Gc2MyVUtJQ0I5TEFvZ0lDSnpkRzl5WlV4cFkyVnVjMlVpSURvZ1ptRnNjMlVLZlFvSyIsIm1lcmNoYW50IjoiY2FibGVsYWJzIn0K

      }

   }

}

 

In the httpRequestHeaders, the name of the header can change depending on your setup, some values can be:

  •  "Authorization"
  • "dt-custom-data"
  • "http-header-CustomData"
  • "clearkeys"

 

 

Sample:

AMP - Samples - MPEG DASH - DRM 

 

 

This document is part of AMP Web: User Guide

Attachments

    Outcomes