Install pre-built WebChimera.js with bundled VLC for Electron
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.
Before installing the package, you may need to configure a few things. Here's the list of configurable items:
ia32
/ x64
. Default value: machine's architecture)win
/ osx
. Default value: machine's platform)vX.Y.Z
. Default value: latest)electron
/ nw
. Default value: electron
)vX.Y.Z
. Default value: latest available for the target runtime and WebChimera version)./bin
)There are 2 ways you can configure these elements this:
WCJS_ARCH
, WCJS_PLATFORM
, WCJS_VERSION
, WCJS_RUNTIME
, WCJS_RUNTIME_VERSION
and WCJS_TARGET_DIR
environment variables. Here's an example:WCJS_RUNTIME=electron WCJS_RUNTIME_VERSION=v0.37.8 WCJS_VERSION=v0.2.4 npm install wcjs-prebuilt
wcjs-prebuilt
hash to your root package.json
and defining the following keys: arch
, platform
, version
, runtime
, runtimeVersion
, targetDir
. Here's an example:"wcjs-prebuilt": {
"runtime": "electron"
"runtimeVersion": "v0.37.8"
"version": "v0.2.4"
}
Please note that not all combinations of runtime versions and WebChimera versions are available. You can see a list of available options here
npm install wcjs-prebuilt
var wcjs = require("wcjs-prebuilt");
// wcjs is WebChimera.js
(please PR other use cases)