Class: shaka.polyfill.PatchedMediaKeysMs

A polyfill to implement EME draft 12 March 2015 on top of ms-prefixed EME v20140218

Constructor

new PatchedMediaKeysMs()

A polyfill to implement EME draft 12 March 2015 on top of ms-prefixed EME v20140218

Source:

Classes

MediaKeys
MediaKeySession
MediaKeyStatusMap
An implementation of MediaKeyStatusMap. This fakes a map with a single key ID.
MediaKeySystemAccess

Methods

install()

Installs the polyfill if needed.
Source:

onMsNeedKey_(eventnon-null)

Handler for the native media elements msNeedKey event.
This:
Parameters:
Name Type Description
event MediaKeyEvent
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>