How To Use Webtorrent.io
https://webtorrent.io https://github.com/feross/webtorrent JavaScript to stream the following torrent in the browser magnet:?xt=urn:btih:6A9759BFFD5C0AF65319979FB7832189F4F3C35D&am
Solution 1:
The code you posted doesn't work in web browser, because WebTorrent doesn't support trackerless magnet URIs in web browser environment (at least at this moment).
Just add at least one WebRTC tracker to your magnet URI, e.g. wss://tracker.webtorrent.io
:
var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&tr=wss%3A%2F%2Ftracker.webtorrent.io'
or use HTTP(S) URL to *.torrent file:
var torrentId = 'https://webtorrent.io/torrents/sintel.torrent'
Post a Comment for "How To Use Webtorrent.io"