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

2nd html example doesn't work #1649

Closed
PaTiToMaSteR opened this issue Jun 23, 2019 · 4 comments
Closed

2nd html example doesn't work #1649

PaTiToMaSteR opened this issue Jun 23, 2019 · 4 comments

Comments

@PaTiToMaSteR
Copy link

@PaTiToMaSteR PaTiToMaSteR commented Jun 23, 2019

Hi there guys, just starting to use and understand webtorrent.

Sadly copy pasting the 2nd example I get an error and nothing of the 2nd html code works. Only appears a little Ui but does nothing. Following https://webtorrent.io/intro
Hence is a bit frustrating :) Additionally I cannot understand how to use the other nodejs code snippets shown at "Quick Examples". If someone can point me in the right direction will be nice, thanks.

What version of WebTorrent?
latest
What operating system and Node.js version?
Windows 10, nodejs 12.4.0
What browser and version? (if using WebTorrent in the browser)
Brave, latest
What did you expect to happen?
That the demo works...
What actually happened?
webtorrent.min.js:5 Uncaught Error: Error downloading torrent: XHR error
at webtorrent.min.js:5
at t.exports. (webtorrent.min.js:7)
at t.exports.t (webtorrent.min.js:5)
at t.exports.r.emit (webtorrent.min.js:4)
at XMLHttpRequest.c.onerror (webtorrent.min.js:7)

@alxhotel

This comment has been minimized.

Copy link
Member

@alxhotel alxhotel commented Jun 24, 2019

Thanks for reporting @PaTiToMaSteR.

I think you are referring to this CodePen: https://codepen.io/yciabaud/pen/XdOeWM

In Chrome, it works as expected (although the line 19 of the JS file should be fix to select the mp4 file). However, as pointed out, the error appears in the Brave browser.

So it seems this is an issue with Brave browsers. In fact there is at least an issue related with this: brave/browser-laptop#12971

@feross @DiegoRBaquero any ideas?

@PaTiToMaSteR

This comment has been minimized.

Copy link
Author

@PaTiToMaSteR PaTiToMaSteR commented Jun 24, 2019

Thanks for the answer! Is that example, yup!
In Chrome works as expected, confirmed.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jul 23, 2019

This is indeed a bug in Brave. I opened an issue with more info here: brave/brave-browser#5361

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jul 23, 2019

I'll attempt to address this issue on the Brave side, so closing this issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.