7.0.1 • Published 5 years ago

electron-widevinecdm3 v7.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

electron-widevinecdm npm package Travis Build Status License: MIT

The project is deprecated. If you'd like to take over the project, contact me.

WidevineCDM for Electron - Allows you to run Netflix and other streaming websites in your Electron apps.

Compatibility

electron-widevinecdm supports macOS & Linux x64. But it does not support Windows (See #10).

According to Electron's documentation,

Note: The major version of Chrome browser has to be the same with the Chrome version used by Electron, otherwise the plugin will not work even though navigator.plugins would show it has been loaded.

So make sure to use the same Electron version with what is set in electron-widevinecdm's peerDependencies.

Installation

  1. Install from npm registry
    yarn add electron-widevinecdm
    or
    npm install electron-widevinecdm --save
  2. Load the plugin:

    const { app } = require('electron');
    const widevine = require('electron-widevinecdm');
    
    widevine.load(app);

Production/Packaging

Electron cannot load the plugin from asar archive so you need to disable asar or unpack node_modules/electron-widevinecdm/widevine directory from asar (example) when packaging the app.

7.0.1

5 years ago

7.0.0

5 years ago