Here is client side code: http://hostcode.sourceforge.net/view/2911
Here is server side code: http://hostcode.sourceforge.net/view/2912
So what happens is, I have two buttons. I am new to webrtc, so I am just testing this out with buttons for now.
I open one window and go to localhost. I click accept camera, and see myself in the camera. Then, on the first window, I am supposed to click on connect. I don't click on the other button!
I open another window and go to localhost. I click accept camera, see myself, and then I click first on connect, and THEN on create offer button. These two windows get connected, BUT it generates like 8-15 ice candidates... And I have them logging on the console. So many ice candidates.... why? Is it a list of all the people on my wifi network? Or what? Where it says "Ok so this is ice candidate event, I guess:" and then it lists the ice candidate.... It writes that like 14 times in console.log, just when those two windows connect! It doesn't make any sense...