Skip to content
A polyfill to add support for EncryptionScheme queries in EME.
JavaScript HTML
Branch: master
Clone or download
joeyparrish Rename cbcs-recommended to cbcs-1-9
Keeping up with spec changes driven by feedback from @xhwang-chromium
and @gregwfreedman.

Also updates version to 1.0.3.

Closes #10
Latest commit fc0b6ab Dec 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
closure-compiler-check Add Closure Compiler checks and fix errors (#8) Nov 22, 2019
demo Rename cbcs-recommended to cbcs-1-9 Dec 5, 2019
.babelrc
.eslintrc.js Fix CommonJS and AMD module export (#6) Nov 21, 2019
.gitignore
CHANGELOG.md Rename cbcs-recommended to cbcs-1-9 Dec 5, 2019
CODE_OF_CONDUCT.md
CONTRIBUTING.md First public release - v1.0.0 Nov 18, 2019
LICENSE First public release - v1.0.0 Nov 18, 2019
README.md Add demo page (#5) Nov 21, 2019
index.html
index.js
package.json Rename cbcs-recommended to cbcs-1-9 Dec 5, 2019

README.md

EME Encryption Scheme Polyfill

A polyfill to add support for EncryptionScheme queries in EME.

Because this polyfill can't know what schemes the UA or CDM actually support, it assumes support for the historically-supported schemes of each well-known key system.

In source form (index.js), this is compatible with the Closure Compiler and the CommonJS module format. It can also be directly included via a script tag.

The minified bundle (dist/eme-encryption-scheme-polyfill.js) is a standalone module compatible with the CommonJS and AMD module formats, and can also be directly included via a script tag. It is about 3.1kB uncompressed, and gzips to about 1.2kB.

To avoid the possibility of extra user prompts, this will shim EME so long as it exists, without checking support for encryptionScheme upfront. The support check will happen on-demand the first time EME is used.

Usage

npm install eme-encryption-scheme-polyfill
<script src="node_modules/eme-encryption-scheme-polyfill/dist/eme-encryption-scheme-polyfill.js"></script>
EmeEncryptionSchemePolyfill.install();
You can’t perform that action at this time.