@gmanole01/wcjs-prebuilt

1.0.1 • Public • Published

WebChimera.js Prebuilt

Forked to suit a specific usecase that wasn't working for me (Webpack + electron).7

badge

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.

Configuration

Before installing the package, you may need to configure a few things. Here's the list of configurable items:

  • Target architecture (supported: ia32 / x64. Default value: machine's architecture)
  • Target platform (supported: win / osx. Default value: machine's platform)
  • Target WebChimera version (format: vX.Y.Z. Default value: latest)
  • Target runtime (supported: electron / nw. Default value: electron)
  • Target runtime version (format: vX.Y.Z. Default value: latest available for the target runtime and WebChimera version)
  • Target directory (where to install the binaries. Default value: ./bin)

There are 2 ways you can configure these elements this:

  • With the 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
    
  • By adding a 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

Installation

npm install wcjs-prebuilt

Programmatic usage

var wcjs = require("src/main/lib/wcjs-prebuilt/index");
// wcjs is WebChimera.js

Used in (ordered by date of adoption)

(please PR other use cases)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.13latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.13
1.0.00

Package Sidebar

Install

npm i @gmanole01/wcjs-prebuilt

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

141 MB

Total Files

374

Last publish

Collaborators

  • gmanole01