Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser-download.js example not working / Can't start download in browser #292

Closed
fpinzn opened this issue Mar 25, 2015 · 5 comments
Closed

browser-download.js example not working / Can't start download in browser #292

fpinzn opened this issue Mar 25, 2015 · 5 comments

Comments

@fpinzn
Copy link
Contributor

@fpinzn fpinzn commented Mar 25, 2015

When used as is, the following warning is thrown:

Warning: must specify a tracker server to discover peers (required in browser because DHT is not implemented yet) (you can use wss://tracker.webtorrent.io)

When the tracker is appended to the url like magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&tr=wss://tracker.webtorrent.io the execution never reaches the add callback.

Here's a plunkr: http://plnkr.co/ey0bp4

Neither does it work in node.

I guess the magnet uri used not longer works. When its changed for a torrent file uri works like a charm in node. In the browser throws an Invalid torrent Identifier error

Like in here: http://plnkr.co/edit/6Jr7qH?

@piedshag

This comment has been minimized.

Copy link

@piedshag piedshag commented Mar 25, 2015

You must be explicitly seeding the file using webrtc. You are able to seed a file on http://instant.io and then download using your provided script with the correct infohash. Feross has explained this multiple times.

@fpinzn

This comment has been minimized.

Copy link
Contributor Author

@fpinzn fpinzn commented Mar 29, 2015

Even when seeding explicitly, the code doesn't reach the torrent metadata callback. This doesn't happen when running in node.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 29, 2015

I'm in the middle of refactoring bittorrent-tracker to support discovery of WebTorrent peers, and deployed to tracker.webtorrent.io and accidentally broke things. Working on fixing that today :)

@fpinzn

This comment has been minimized.

Copy link
Contributor Author

@fpinzn fpinzn commented Mar 29, 2015

👌

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 1, 2015

Okay, https://instant.io is working again!

@feross feross closed this Apr 1, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.