Socket
Socket
Sign inDemoInstall

eme-encryption-scheme-polyfill

Package Overview
Dependencies
0
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eme-encryption-scheme-polyfill

A polyfill for the encryptionScheme field in EME


Version published
Weekly downloads
230K
decreased by-0.16%
Maintainers
3
Install size
47.6 kB
Created
Weekly downloads
 

Changelog

Source

2.1.1 (2022-08-10)

Bug Fixes

  • Fix ES6 transpilation (#49) (b170e12), closes #48

Readme

Source

EME & MediaCapabilities Encryption Scheme Polyfill

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.

Usage

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

Keywords

FAQs

Last updated on 10 Aug 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc