Skip to content

Latest commit

 

History

History
 
 

p2p-share

It is considered deprecated! Try WebRTC P2P Group File Sharing Experiment instead.

that allows you:

  1. Share files in a group (many-to-many)
  2. Unlimited data connections on Firefox

How WebRTC file sharing experiment works?

  1. It shares the file directly over all connected data ports
  2. By default 16 SCTP ports are used by Firefox!

If 16 SCTP streams are used in one-to-one data connection. In 10 peers session; 160 SCTP streams will be used which is really awkward!

That's why it is strongly suggested to not open multiple peer connections on single page!

Is this a P2P file distributing system?

Well, maybe!

Is this a torrent like file distributing/sharing system?

This P2P file sharing experiment works like this:

  1. Multi-peers are opened to support multi-users
  2. Multi data ports are opened in multi-directions
  3. If UserA share file...file will be transferred asynchronously over all connected data ports.
  4. All other users are connected directly to each other; like a hexagon or other many directional shape.

Chrome and unreliable data connection...how it works?

In a simple one-to-one data session; chrome opens two RTP ports:

  1. One RTP data port of outband
  2. One RTP data port of inband

So many limitations in the moment; to resolve all those limitations; data/files are splitted in small chunks; and those chunks are transferred step-by-step after predefined time interval to make distribution consistent and reliable.

How to use One-to-Many File Sharing in your own site?

Just copy HTML/JS code in your site and that's all you need to do. Nothing to install! No requirements!

Browser Support

WebRTC File Broadcasting (file sharing) experiment works fine on following web-browsers:

Browser Support
Firefox Stable / Aurora / Nightly
Google Chrome Stable / Canary / Beta / Dev
Internet Explorer / IE Chrome Frame

License

WebRTC File Broadcasting experiment is released under MIT licence . Copyright (c) 2013 Muaz Khan.