Friday, 20 June 2014

Tough Parts in WebRTC

Web RTC is supposed to be easy for developers,

Simple javascript 3-4 lines code and here you can make amazing application
though as advertised by Google guys, but the thing is , its still not easy for average programmer to make it to work, codes available on the site, example codes hardly work, only guys who are closely following webrtc are able to make it work


it will take time for average programmers to make it work

basic thing they miss out to tell is , that it requires signalling server
and there where confusion starts,  that's why there code doesn't work, LOL

Web RTC Intro (Revolutionary new technology from GOOGLE)

Web RTC is a new technology, which will enable peer to peer (Real Time) communication within the browser

WebRTC is a technology primarily of GOOGLE
GOOGLE has spent around 500 million to make this technology available
and still working on it,

technology can be used for many things like for chat system, games and many other things

but i will primarily talk it about its use in chat systems and calling systems

for ex. Skype, people can make free calls using Skype, for example user a calls user b
a-->b

a cannot directly connect to b, becoz a does not have its adress, but skype has both the users address, so in order to communicate b, a has to communicate via skype server, which has both users address

problem is each and every message is routed via Skype, increasing bandwidth usage for Skype and network latency, each and every message is routed via Skype server increasing a delay in message reaching at other end


now here comes webrtc, the real time application, in this case

a wants to communicate with b, but does not have its address, so a has to communicate via server
a initiates an interest to communicate with b, which is received by the server, and passes to the user b,  which then acknowledges the communication

now this is where actual change takes place, now the server will give both the parties each others address, and now once they got each other address, there is direct communication, server is no longer needed now.

messages will be sent directly from computer a to computer b, becoz they got each others address and the speed will be very high, since its direct

and it also helps server to save bandwidth

this technology is implement in google chrome, firefox , opera

for more info visit
http://www.webrtc.org/