Classes
Methods
(static) install()
Installs the polyfill if needed.
(static) requestMediaKeySystemAccess(keySystem, supportedConfigurationsnon-null) → (non-null) {Promise.<!MediaKeySystemAccess>}
An implementation of navigator.requestMediaKeySystemAccess.
Retrieves a MediaKeySystemAccess object.
This:
- Navigator
Parameters:
Name | Type | Description |
---|---|---|
keySystem |
string | |
supportedConfigurations |
Array.<!MediaKeySystemConfiguration> |
Returns:
- Type
- Promise.<!MediaKeySystemAccess>
(static) setMediaKeys(mediaKeys) → (non-null) {Promise}
An implementation of HTMLMediaElement.prototype.setMediaKeys.
Attaches a MediaKeys object to the media element.
This:
Parameters:
Name | Type | Description |
---|---|---|
mediaKeys |
MediaKeys |
Returns:
- Type
- Promise