Constructor
new PatchedMediaKeysApple()
A polyfill to implement modern, standardized EME on top of Apple's prefixed EME in Safari.
Classes
- MediaKeys
 - MediaKeySession
 - MediaKeyStatusMap
 - An implementation of MediaKeyStatusMap. This fakes a map with a single key ID.
 - MediaKeySystemAccess
 
Members
Methods
defaultInstall()
    Installs the polyfill if needed.
install(enableUninstallopt)
    Installs the polyfill if needed.
    Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
enableUninstall | 
            
            boolean | 
                
                    <optional> | 
            
            
                false | enables uninstalling the polyfill | 
onWebkitNeedKey_(eventnon-null)
    Handler for the native media elements webkitneedkey event.
    This:
Parameters:
| Name | Type | Description | 
|---|---|---|
event | 
            
            MediaKeyEvent | 
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> | 
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 | 
Returns:
- Type
 - Promise
 
uninstall()
    Uninstalls the polyfill if needed and enabled.