7.0.1 • Published 7 years ago
electron-widevinecdm3 v7.0.1
electron-widevinecdm

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
- Install from npm registry
oryarn add electron-widevinecdmnpm install electron-widevinecdm --save 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.