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

WebTorrent doesn't play the movie #1

Closed
KeizerDev opened this issue Jan 12, 2016 · 9 comments
Closed

WebTorrent doesn't play the movie #1

KeizerDev opened this issue Jan 12, 2016 · 9 comments

Comments

@KeizerDev
Copy link
Owner

When just passing the magnet link to webtorrent, it won't ever start. Maybe my magnet path si wrong or there is something wrong with https://github.com/KeizerDev/Browsertime/blob/master/server.js#L45-L50.

@KeizerDev
Copy link
Owner Author

A better example, when pasting this in your chrome console on localhost:3000, when browsertime is started, it will work. But when changing it to something like magnet:?xt=urn:btih:21AC20E0976C373B8372D1637F075AD0BEEFCAD6&dn=the+last+witch+hunter+2015+720p+webrip+x264+aac+etrg&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce it never will.

var client = new WebTorrent()

var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d'

client.add(torrentId, function (torrent) {
  // Torrents can contain many files. Let's use the first.
  var file = torrent.files[0]

  // Display the file by adding it to the DOM. Supports video, audio, image, etc. files
  file.appendTo('body')
})

@KeizerDev KeizerDev changed the title WebTorrents doesn't play the movie WebTorrent doesn't play the movie Jan 12, 2016
@timxd
Copy link

timxd commented Jan 30, 2016

Hi

In webtorrrent faq

Why does browser downloading not work? I see no peers!

It does work! But you can't just use any random magnet uri or .torrent file. The torrent must be seeded by a WebRTC-capable client, i.e. webtorrent-hybrid, instant.io, or Playback.

In the browser, WebTorrent can only download torrents that are explicitly seeded to web peers via a WebRTC-capable client. Desktop torrent clients need to support WebRTC to connect to web browsers.

And someone report this:
webtorrent/webtorrent#565

So I am not sure,please check it.

@KeizerDev
Copy link
Owner Author

True, we have to basically reseed all the movies to work with the protocol. So that's where I'm currently working on.

@lbennett-stacki
Copy link

Are there any alternative solutions to use webtorrent that would allow us to use pre-seeded torrents? If thats not an option, what is the solution you're looking to impliment?

@KeizerDev
Copy link
Owner Author

I'm still looking for the best way to do it and if I really have to reseed all the torrents to webtorrent.
If so, I'll start with like 5 movies and let the users then add more torrents with just a seed-client build in electron. We just have to host a tracker to locate all the torrents and that's it.

@fonewoda
Copy link

fonewoda commented Feb 1, 2016

I found webtorrent need to connect to tracker.webtorrent.io

How about use own tracker?

And since its with p2p network,if any people watch the video and upload the video,they could be a seed too or only one original seed?

@KeizerDev
Copy link
Owner Author

@fonewoda If you take a look at a random magnet link you will see there is a tr param: magnet:?xt=urn:btih:00f4b0b91b84cacfbb08d3256fc3470d639d81f0&dn=Modern+Talking+-+The+Hits+%282007%29+-+Disco+&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969
we can replace this with our own and use it that way.

They could be a seed too but they need something like a torrent client installed though. They can't do it from there browser.

@fonewoda
Copy link

fonewoda commented Feb 1, 2016

@KeizerDev so other user can't be seed,only one seed upload the video,but the seed bandwidth is limit,will it be very slow when watch video or need huge bandwidth?Thanks.

@KeizerDev
Copy link
Owner Author

We manage to fix this. Release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants