Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDoes Webtorrent works on node.js on server ? #1295
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
By default if you use 'webtorrent' in Node.js, it won't connect to browser peers. You need to use |
This comment has been minimized.
This comment has been minimized.
|
@feross I did tried |
This comment has been minimized.
This comment has been minimized.
|
It looks like Electron (which gives the WebRTC implementation we use) doesn't provide pre-built binaries for CentOS: electron/electron#259 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't know if
Webtorrentwork on server or not, i made a simple test but it didn't work.this is the code i use :
var WebTorrent = require('webtorrent');var client = new WebTorrent();client.seed('./out.mp4', function (torrent) {console.log('Seeding out.mp4: ', torrent.infoHash)})i got this on the output
Seeding out.mp4 : bbd73a021f02c6e21f619ddf3f3bb602e96d9f07, but when i copy the torrent infoHash and paste it toinstant.io, it didn't play, i didn't get any errorthe server is running
Centos7