webtorrent-hybrid: Error starting `electron-webrtc` on Cent OS
I run this command in node
var WebTorrent = require('webtorrent-hybrid');
var client = new WebTorrent()
files = '/home/teste.mp4';
client.seed(files, function (torrent) {
console.log('Client is seeding:', torrent.magnetURI );
})
And show:
Client is seeding: magnet:?xt=urn:btih:011e44ce997698779c31269114337f5c958e0126&dn=teste.mp4&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io
But in web brower this code don’t show any response in console
var torrentId = 'magnet:?xt=urn:btih:011e44ce997698779c31269114337f5c958e0126&dn=teste.mp4&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io';
var client = new WebTorrent()
client.add(torrentId, function (torrent) {
console.log(torrent.files[0]);
})
And in uTorrent works fine.
Thank you.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 25 (14 by maintainers)
It looks like CentOS doesn’t have a pre-compiled binary for Electron. That’s a bummer. See https://github.com/electron/electron/issues/259
You can try compiling Electron from scratch following the Linux compilation instructions, and then put the binary in place of the current
electron-prebuiltbinary.I bet that works, but it’s not gonna be fun.
@ipsBruno You don’t need to start xvfb anymore. See this change to the readme: https://github.com/feross/webtorrent-hybrid/pull/41/files
Try removing that code from your node app?