
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
eme-encryption-scheme-polyfill
Advanced tools
The Shaka Player maintainers felt that this was better if folded into the player instead of being maintained as a separate project. In addition, nobody responded to an announcement in https://github.com/shaka-project/eme-encryption-scheme-polyfill/issues/100 objecting to us archiving this project.
Find the new source here: https://github.com/shaka-project/shaka-player/blob/main/lib/polyfill/eme_encryption_scheme.js
A polyfill to add support for EncryptionScheme queries in EME and MediaCapabilities.
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.
The v2.0.3 build is about 5.3kB uncompressed, and gzips to about 1.7kB.
To avoid the possibility of extra user prompts, this will shim EME & MC so long
as they exist, without checking support for encryptionScheme upfront. The
support check will happen on-demand the first time EME/MC are used.
npm install eme-encryption-scheme-polyfill
<script src="node_modules/eme-encryption-scheme-polyfill/dist/eme-encryption-scheme-polyfill.js"></script>
// Install both EME & MC polyfills at once:
EncryptionSchemePolyfills.install();
// Install each one separately (unminified source only):
EmeEncryptionSchemePolyfill.install();
McEncryptionSchemePolyfill.install();
FAQs
A polyfill for the encryptionScheme field in EME
The npm package eme-encryption-scheme-polyfill receives a total of 49,391 weekly downloads. As such, eme-encryption-scheme-polyfill popularity was classified as popular.
We found that eme-encryption-scheme-polyfill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.