electron-widevinecdm

WidevineCDM for Electron


License
MIT
Install
npm install electron-widevinecdm@8.0.0

Documentation

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
  1. 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.