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 upUncaught Error: filesystem paths do not work in the browser #779
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
HTTP url arguments are not supported to If you insist on using an http url, then you should download the file first, if it's not too large. var get = require('simple-get')
var client = new WebTorrent({ rtcConfig: rtcConfig })
get('http://localhost/a.mp4', function (err, res) {
if (err) return console.error(err.message)
var opts = {
name: 'My cool torrent',
urlList: [ 'http://localhost/a.mp4' ] // add a web seed to the torrent
}
client.seed(res, opts, function (torrent) {
console.log('magnet link with web seed support: ' + torrent.magnetURI)
})
})
|
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I got this message when try to seed a file served from localhost via nginx:
http://localhost/a.mp4. My code:index.html
script.js
I have just search in issue and find #665 but i can't any information to solve this. Pls help me.