Install WebChimera.js prebuilt binaries for Electron using npm. This module allows you to set-up WebChimera.js + embedded VLC without compilation / additional steps.
WebChimera.js is a node.js binding to libvlc. You can use it to play video using a JS raw array buffer drawn via WebGL.
Installation
npm install wcjs-prebuilt
You can install the module for another platform than the one you're running - for example if you want to package your application for another OS. To do that, use the WCJS_PLATFORM
, WCJS_ARCH
environment variables.
You can also tweak WebChimera.js version through WCJS_VERSION
.
For example, to install for Windows under any OS, use
WCJS_PLATFORM=win WCJS_ARCH=ia32 WCJS_RUNTIME=nw.js npm install wcjs-prebuilt
Currently supported platforms are osx
, win
, and linux
.
Currently supported runtimes:
electron
/electron44
- Electron 0.29.x, based on chromium 44electron45
- electron 0.31.x, based on chromium 45nw.js
- latest NW.js
Programmatic usage
var wcjs = require("wcjs-prebuilt");
// wcjs is WebChimera.js
Used in (ordered by date of adoption)
- Stremio - since version 2.0
- Powder Player - since version 0.90
- Popcorn Time - not yet released with WebChimera.js, in progress
(please PR other use cases)