Files
shaka-player/lib/polyfill/encryption_scheme.js
T
Michelle Zhuo bf0644aa4a feat(MediaCap): Patch VP9 codec
MediaCapabilities supports 'vp09...' codecs, but not 'vp9'. Translate
vp9 codec strings into 'vp09...', to allow such content to play with
mediaCapabilities enabled.

Change-Id: Iff7ddae379efb8a9f0766c89a62b85a325f81e93
2021-04-29 20:27:09 +00:00

30 lines
790 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shaka.polyfill.EncryptionScheme');
goog.require('shaka.polyfill');
/**
* @summary A polyfill to add support for EncryptionScheme queries in EME.
* @see https://wicg.github.io/encrypted-media-encryption-scheme/
* @see https://github.com/w3c/encrypted-media/pull/457
* @see https://github.com/google/eme-encryption-scheme-polyfill
*/
shaka.polyfill.EncryptionScheme = class {
/**
* Install the polyfill if needed.
*
* @suppress {missingRequire}
*/
static install() {
EncryptionSchemePolyfills.install();
}
};
// Install at a low priority so that other EME polyfills go first.
shaka.polyfill.register(shaka.polyfill.EncryptionScheme.install, -2);