Git Product home page Git Product logo

electron-widevinecdm's Introduction

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.

electron-widevinecdm's People

Contributors

quanglam2807 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-widevinecdm's Issues

¿Will armv7l be supported?

¡Thank you for making this!

I would like to play netflix in a raspberry which has ARM architecture.
¿Will this package support that?

Building error

When i try to build my Electron app i get this error

ERROR in ./~/electron-widevinecdm/src/index.js Module not found: Error: Cannot resolve 'file' or 'directory' ../package in /Users/george/Desktop/React/always-on-top/node_modules/electron-widevinecdm/src @ ./~/electron-widevinecdm/src/index.js 6:16-37

any idea?

Cannot watch Netflix anymore

I get the following error when attempting to watch something on Netflix:

Uncaught Error: attempting to use ShaktiProperties before the properties client has been initialized. This may mean you should defer your require until needed vs at the top of file.

DRM test fails

Using electron version 2.0.0 and node v8.11.2

  1. Added widevinecdm to project
  2. Start browser with enabled: plugins
  3. yarn start

DRM test page shows - widevine but video is not loading

screenshot 2018-06-14 17 42 42

Checked chrome version with electron and the version of widevine added - Major version matches as well.

Unexpected token )

error /home/paul/Documents/Coding/node_modules/electron-widevinecdm: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /home/paul/Documents/Coding/node_modules/electron-widevinecdm
Output:
/home/paul/Documents/Coding/node_modules/electron-widevinecdm/install.js:84
  ),
  ^
SyntaxError: Unexpected token )
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

Happens upon install.

Client side plugin download

Hi there,
I was thinking about using this for an App I'm building.
Would it be possible to run the install.js script on the client side instead of post-install? That way the first time a user opens the app it would download the correct plugin version and then load it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.