Giter Club home page Giter Club logo

Comments (9)

KeizerDev avatar KeizerDev commented on June 20, 2024

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')
})

from browsertime.

timxd avatar timxd commented on June 20, 2024

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.

from browsertime.

KeizerDev avatar KeizerDev commented on June 20, 2024

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

from browsertime.

lbennett-stacki avatar lbennett-stacki commented on June 20, 2024

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?

from browsertime.

KeizerDev avatar KeizerDev commented on June 20, 2024

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.

from browsertime.

fonewoda avatar fonewoda commented on June 20, 2024

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?

from browsertime.

KeizerDev avatar KeizerDev commented on June 20, 2024

@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.

from browsertime.

fonewoda avatar fonewoda commented on June 20, 2024

@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.

from browsertime.

KeizerDev avatar KeizerDev commented on June 20, 2024

We manage to fix this. Release soon.

from browsertime.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.