muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.72k stars 3.95k forks source link

DataChannel speed and reliability in Chrome #80

Open Tomfox91 opened 11 years ago

Tomfox91 commented 11 years ago

Data connections using RTCMultiConnection v1.4 (and other experiments) are really slow. It should be possible to use more bandwidth just like Sharefest does.

muaz-khan commented 11 years ago

Do you've any suggestions? Can you test v1.4 on unique ip addresses and operating systems? You need to replace line 997-to-1000 with following snippet of code:

if (textToTransfer.length) setTimeout(function () {
    onReadAsDataURL(null, textToTransfer);
}, 1);

Interval is set to 1 instead of 500. It works locally however we need to make sure it works with 1MB or lower bandwidth modems.

Tomfox91 commented 11 years ago

I edited version 91130eac773d41ae8932f0d487c60eb0feaa5ab7 of RTCMultiConnection v1.4. I tried it with Chrome 28 on OS X.

I suggest you look at ShareFest's code on their GitHub repo.