mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
f539147d48
This fixes all the license headers in the main library, which corrects the appearance of the main license in the compiled output. It seems that the `!` in the header forces the compiler to keep it in the output. I believe older compiler releases did this purely based on `@license`. Issue #2638 Change-Id: I7f0e918caad10c9af689c9d07672b7fe9be7b2f3
30 lines
790 B
JavaScript
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, -1);
|