Giter VIP home page Giter VIP logo

webtorrent.io's Introduction

webtorrent.io github javascript style guide

The website for the WebTorrent project

Developer Notes

  • Requires Node.js v8.0.0 or newer
  • secret/index.js will need to be created locally (copy secret/index-sample.js).

Log folders

For production, the following folders are required to exist with chmod 777.

  • $HOME/www/log/webtorrent.io/crash-reports
  • $HOME/www/log/webtorrent.io/telemetry

For local development (not using NODE_ENV="production" environment variable), these folders will be created at:

  • (application root)/logs/crash-reports
  • (application root)/logs/telemetry

license

MIT. Copyright (c) WebTorrent, LLC.

webtorrent.io's People

Contributors

alxhotel avatar bnjmnt4n avatar cesarandreu avatar dcposch avatar dependabot[bot] avatar diegorbaquero avatar feross avatar flet avatar greenkeeper[bot] avatar greenkeeperio-bot avatar linusu avatar mathiasvr avatar renovate-bot avatar renovate[bot] avatar sashahilton00 avatar sonicdoe avatar srenatus avatar ungoldman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webtorrent.io's Issues

Server regularly crashes

We have supervisor listening to automatically restart the server, but we should prevent the crashes because they cause the site to be intermittently unavailable.

Error: socket hang up
    at createHangUpError (_http_client.js:203:15)
    at Socket.socketCloseListener (_http_client.js:235:23)
    at emitOne (events.js:82:20)
    at Socket.emit (events.js:169:7)
    at TCP._onclose (net.js:469:12)

Improve torrent graph UI

  • change node color depending on seed/leech state
  • show transfer rate between nodes (by changing thickness of line?)
  • show additional peer info (client name, version, country) when clicking on peer
  • show web seed node in the graph (it's omitted right now)
  • show upload speed (MB/s) in the interface (when it's not 0 B/s)

Do not autoplay if video is not onscreen

webtorrent.io exhibits the nefarious "mysterious audio syndrome": I was introducing someone to bittorrent clients via webtorrent.io, and the sintel video starting playing while they were scrolled down the page, producing audio that wasn't immediately identifiable. It would be swell if the video player only automatically played if the player element is onscreen.

Thanks for making webtorrent! ❀️ πŸ‘‹

Installation of WWW Demo for Begginers

Hello, im trying to install this website demo and im getting this error on Ubuntu 16.04

/home/feross/www/webtorrent.io/bin# ./deploy.sh
Already up-to-date.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer
extract:xhr β†’ gunzTarPerm β–Œ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
./deploy.sh: line 14: 15602 Killed npm install --production --quiet

Im really dont know how to start to install, im starting from this shell script 'deploy.sh'...

my pkg:
dpkg -s nodejs Package: nodejs Version: 5.11.1-1nodesource1~xenial1

thanks !

CDN and NPM module won't load

What version of WebTorrent?
version - 0.98.18
What operating system and Node.js version?
OS X Sierra - Node v7.10.0
What browser and version? (if using WebTorrent in the browser)
Tried both Firefox and Chrome [Version 58.0.3029.110 (64-bit)], both latest versions.

this codepen works
but the video doesn't show, it just downloads the whole file.

error I get:
GET https://webtorrent.io/torrents/Sintel/Sintel.mp4 net::ERR_CONTENT_LENGTH_MISMATCH
``

Test experience on all browsers

Test experience on all browsers, including those that lack WebRTC support.

Saw this on iOS chrome, which is not a very helpful message.

img_6987

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Improve Time to First Frame

On https://webtorrent.io, we're showing Sintel, which is well-seeded and has a web seed (i.e. it's also available over http). On medium-speed public wifi here in New Zealand (where I'm visiting), the Time to First Frame is a few seconds. I think there's more we can do to make this faster.

Possible ideas:

  • Add the web seed "peers" as soon as possible
  • videostream should get better! cc @jhiesey
  • Add the video tag to the page as soon as possible to save DOM rendering and reflow time.
  • Use a smaller video file, so less data is needed to start playing the video.
  • Use a video that doesn't start with 3 seconds of black screen (this is just a perception thing)
  • Web seeding should fetch larger chunks than 16KB (block size) (webtorrent/webtorrent#67)

Don't download a 129MB file automatically

Original report of issue was at webtorrent/webtorrent#815

In my case I am on a usage-caped satellite Internet connection. It is rather hard to visit the website to learn about webtorrent because of the data that will be consumed while I try to read the webpage.

The suggestions proposed by @franciscop on the original issue were:

  • Download a 2-3MB file. However this is not so cool as you cannot see the video itself, but much better than using the user's data plan.
  • Detect the device/screen and choose to download only on desktop. However this is probably error-phrone.
  • Add a "stop" button (or a "start" one) so the visitors can toggle the torrent download at will.

Note: I am not a fan of the second one because there are many cases (such as mine) where you do not want the automatic download on a desktop either.

Tracker should not go down during deployment

Right now, whenever someone commits to this repo, the website goes down for a minute while the new code is git pulled, npm installed and the node process is started.

I'm okay with a few seconds of downtime for https://webtorrent.io, but not for the tracker, which is relied upon by other services. When the tracker is down, peers can't find each other.

New page: FAQ

  • What is WebTorrent? (share the vision)
  • How does WebTorrent work? (share the technical details)
  • What is WebRTC?
  • Why don't I see any peers?
  • What can I build on top of WebTorrent?
  • Who is using WebTorrent today?

Tracker is Down

I've installed the webtorrent plugin for Vuze and the announces are telling me that the webtorrent.io tracker is not connecting. IT says,

"Connection failed., UnresolvedAddressException"

Other webTorrent trackers like OpenWEBTorrrent tracker and my version of bittorrent-tracker work perfectly fine. I'm not sure if the server you were running it on crashed from the load or you need to register the IP to the domain again but it's been ~24 hours and still no connection.

Find Creative Commons content

Aiming to make two torrents:

  • 480p (less than 50MB, for demos on slow networks)
  • HD

Video should be CC license, or we should have permission to use it

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.