I have created a WebRTC project in backbone so that, the code will be easy to follow.
https://github.com/jintoppy/webrtc-backbone
All web rtc related functions are given in the webrtc-backbone / public / js / services / WebRTCService.js file...
Sunday, September 29, 2013
Wednesday, September 18, 2013
Duff’s Device pattern in JavaScript
7:20 AM
Posted by Unknown
advanced JS, duff device, javascript, loops, performance improvement
No comments
Duff’s Device pattern in JavaScript
Duff’s Device is a technique of unrolling loop bodies so that each iteration actually does
the job of many iterations. Jeff Greenberg is credited with the first published port of
Duff’s Device to JavaScript from its original implementation in C. A typical implementation
looks like this:
//credit: Jeff Greenberg
var iterations = Math.floor(items.length / 8),
startAt...
Wednesday, September 11, 2013
My WebRTC experiments
I am trying on WebRTC. I will update my progress here. Currently, I am stuck on the following issue.
When I am using RTCDataChannel.send method, I am getting the following error:
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
I am checking if this is because of the createOffer issue.
Those who are not familiar with webRTC, you can...