New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eme-encryption-scheme-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eme-encryption-scheme-polyfill

A polyfill for the encryptionScheme field in EME

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
209K
increased by8.74%
Maintainers
1
Weekly downloads
 
Created
Source

EME Encryption Scheme Polyfill

A polyfill to add support for EncryptionScheme queries in EME.

https://wicg.github.io/encrypted-media-encryption-scheme/ https://github.com/WICG/encrypted-media-encryption-scheme/issues/13

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();

Keywords

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc