It’s 5 in the morning and i am tired and its a possibility that i may be writing a long post, Last night i asked my self what is it that i have learned in the las t couple of months and out of nothingness i rememberd a VIDEO CHAT APPLICATION which my friend Viren and I worked on. I thought it might be useful for some of you.
When we started, we didnt have enough knowledge where to begin with and had time constraints to meet. We came across solutions like Red5,ErlyVideo. Now our problem was that our client had to be in flash or java applet. So we tried working around many solutions. HTML5 was months away from its release.
we are looking into other HTML5 Features and we get awesome HTML5 web socket support so we thought let’s get some hands on it.
So we are ready,
We go through HTML5 Web Socket API,and tutorial so basically it’s a technique for two-way communication over one (TCP) socket, a type of PUSH technology.
So it has mainly three events
- onopen: When a socket has opened
- onmessage: When a message has been received
- onclose: When a socket has been closed
Steps we are following
- When User is connected onopen event is fired and we create one default connection and add to pool of channels,it’s used for mainly notification purpose