Class: shaka.polyfill.PatchedMediaKeysNop

A polyfill to stub out EME draft 12 March 2015 on browsers without EME. All methods will fail.

Constructor

new PatchedMediaKeysNop()

A polyfill to stub out EME draft 12 March 2015 on browsers without EME. All methods will fail.

Source:

Classes

MediaKeys
MediaKeySystemAccess

Methods

install()

Installs the polyfill if needed.
Source:

requestMediaKeySystemAccess(keySystem, supportedConfigurationsnon-null) → {Promise.<!MediaKeySystemAccess>}

An implementation of navigator.requestMediaKeySystemAccess. Retrieves a MediaKeySystemAccess object.
This:
  • Navigator
Parameters:
Name Type Description
keySystem string
supportedConfigurations Array.<!MediaKeySystemConfiguration>
Source:
Returns:
Type
Promise.<!MediaKeySystemAccess>

setMediaKeys(mediaKeys) → {Promise}

An implementation of HTMLMediaElement.prototype.setMediaKeys. Attaches a MediaKeys object to the media element.
This:
Parameters:
Name Type Description
mediaKeys MediaKeys
Source:
Returns:
Type
Promise