Classes
Members
(private, static) prefix_ :string
Store api prefix.
Type:
- string
Methods
(private, static) getVideoElement_() → (non-null) {HTMLVideoElement}
For some of this polyfill's implementation, we need to query a video element.
But for some embedded systems, it is memory-expensive to create multiple
video elements. Therefore, we check the document to see if we can borrow one
to query before we fall back to creating one temporarily.
Returns:
- Type
- HTMLVideoElement
(static) install()
Installs the polyfill if needed.
(private, static) prefixApi_(api) → {string}
Prefix the api with the stored prefix.
Parameters:
Name | Type | Description |
---|---|---|
api |
string |
Returns:
- Type
- string
(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