Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

WebChimera not working on Electron (Linux) #85

Closed
LeoNero opened this issue Jul 3, 2016 · 8 comments
Closed

WebChimera not working on Electron (Linux) #85

LeoNero opened this issue Jul 3, 2016 · 8 comments
Labels

Comments

@LeoNero
Copy link

LeoNero commented Jul 3, 2016

Hi. I have the following package.json:

{
    "dependencies": {
        "peerflix": "^0.35.1",
        "wcjs-player": "^6.0.0",
        "webchimera.js": "0.2"
 },
  "devDependencies": {
    "electron-prebuilt": "0.36.7"
  }
}

and the following index.js:

var magnetLink = "magnet link goes here";

var peerflix = require('peerflix');
var wjs = require('wcjs-player');
var player = new wjs("#player").addPlayer({ autoplay: true, wcjs: require('webchimera.js') });
var engine = peerflix(magnetLink);

engine.server.on('listening', function() {
    var myLink = 'http://localhost:' + engine.server.address().port + '/';
    player.addPlaylist(myLink);
});

but when I type ./node_modules/.bin/electron . in the console, no video is playing in my app and the console shows this error message:
"Uncaught Error: Module version mismatch. Expected 47, got 43.", source: /home/leonardo/test/node_modules/bindings/bindings.js

What can I do to solve this issue?

@LeoNero LeoNero changed the title WebChimera not working on Electron WebChimera not working on Electron (Linux) Jul 3, 2016
@LeoNero LeoNero changed the title WebChimera not working on Electron (Linux) WebChimera not working on Electron Jul 3, 2016
@LeoNero LeoNero changed the title WebChimera not working on Electron WebChimera not working on Electron (Linux) Jul 3, 2016
@RSATom
Copy link
Owner

RSATom commented Jul 4, 2016

@LeoNero you need specify Electron version you want build WebChimera.js for.
For example please look: https://github.com/RSATom/WebChimera.js/blob/master/build_electron.sh

@RSATom
Copy link
Owner

RSATom commented Jul 4, 2016

"Uncaught Error: Module version mismatch. Expected 47, got 43."

This error means you try use .node module built for one Electron version with different Electron version

@RSATom RSATom added the question label Jul 4, 2016
@LeoNero
Copy link
Author

LeoNero commented Jul 4, 2016

@RSATom for some reason, webchimera.js version 0.2.5 had been installed.
I changed "webchimera.js": "0.2" to "webchimera.js": "0.2.0" and now my app works. Thanks!

@RSATom
Copy link
Owner

RSATom commented Jul 4, 2016

hm.. Why do you need exactly v0.2.0?

@LeoNero
Copy link
Author

LeoNero commented Jul 4, 2016

Because v0.2.0 is the latest version that works on linux, isn't it?

@RSATom
Copy link
Owner

RSATom commented Jul 4, 2016

No, latest versions just don't have prebuilt for Linux due to broken travis-ci build script.
But it's still supported (except latest Electron versions due to #69)

@LeoNero
Copy link
Author

LeoNero commented Jul 4, 2016

Ok! I'll try newer versions later

@RSATom
Copy link
Owner

RSATom commented Jul 8, 2016

it looks solved...

@RSATom RSATom closed this as completed Jul 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants