P2PSP / Virtual-Room

A virtual room where friends share videos among them in real time directly over the web browser, with synchronized playback and a video chat at the same time.
GNU General Public License v3.0
34 stars 25 forks source link

Not working with more than 2 peers #13

Closed josmangarsal closed 7 years ago

josmangarsal commented 7 years ago

The video keep loading forever. And pause/play messages apear randomly.

captura de pantalla de 2017-07-20 09-07-52

cristobalmedinalopez commented 7 years ago

Hi @josmanual @jainamritanshu, I guess that the problem is that peers are not sharing its chunks among them. Please, verify that. Take into account that we want to follow the DBS set of rules from the P2PSP protocol (avoid congestion mode). So, when a peer receives a message from the splitter (sender), the peer saves the chunk and shares it following the peers list, the event of sending is triggered with the reception of a new chunk (from other peers). If the peer receives a chunk from the splitter before it finishes to send its chunk to the entire team, it sends the chunk in a loop (burst mode).

Please read about it in the P2PSP DBS Doc. Check the P2PSP WebRTC Experiments, specifically the code in channel.onmessage function in peer.js For further questions ask us on Gitter or Slack.

cristobalmedinalopez commented 7 years ago

It was fixed in PR #19 where DBS is implemented.