akamai.amp.KeySystem

The KeySystem utility class.

Members

CLEARKEY

(static, readonly) :string

ClearKey DRM System.

FAIRPLAY

(static, readonly) :string

Fairplay DRM Key System.

PLAYREADY

(static, readonly) :string

PlayReady DRM Key System.

UNKNOWN

(static, readonly) :string

Unkwnon DRM Key System.

WIDEVINE

(static, readonly) :string

Widevine DRM Key System.

Methods

detect

(static) detect() → {Promise.<akamai.amp.Util.KeySystem>}

Attempts to detect the platform's EME Key System.

Returns
Promise.<akamai.amp.Util.KeySystem>

The evaluated result

init

(static) init() → {Promise.<akamai.amp.Util.KeySystem>}

Initializes the KeySystem utilities.

Returns
Promise.<akamai.amp.Util.KeySystem>

The evaluated result

isEMEBrowser

(static) isEMEBrowser() → {boolean}

Returns the defaults EME browser support.

Returns
boolean

requestMediaKeyAccess

(static) requestMediaKeyAccess(key) → {Promise.<akamai.amp.Util.KeySystem>}

Evaluates key system support through EME requestMediaKeySystemAccess API.

Parameters
Name Type Description
key string.<akamai.amp.Util.KeySystem>
Returns
Promise.<akamai.amp.Util.KeySystem>

The evaluated result