Analysis and development of a P2P Web Video Chat via Peer JS

Tuesday, 21-07-20, Nick Zoumpoulis

Analysis and development of a P2P Web Video Chat via Peer JS

We always thought the idea of online web video calls between users through a simple web browser pretty amazing and extremely interesting. Such platform would be very successful on commercial websites, portals and online telemedicine applications.

There are several companies that have already developed online video conference platforms and the majority of them charge such a service by time or per domain.

Our team, always trying to search, analyze and test new technologies and web applications, discovered a few months ago the online platform PeerJS, based on WebRTC protocol and developed be PeerJS team.

First tests were very encouraging showing high potential since the implementation and customization of the platform was not difficult. PeerJS team constantly develops the application which currently supports three very well known web browsers, Chrome, Firefox and Opera.

The magic behind this platform is that the video call is p2p (person to person) without the need of an intermediate server or media server. It offers great video and sound quality as well as a smooth frame rate during the video call.

PeerJS offers numerous types of connections, from a simple text chat, a simple video chat, to a more complex video chat that supports file transfer between users, as well as online gaming like the popular tetris.

We used PeerJS as a basis in order to create an online video call environment which imitates Skype. For this reason, we have combined two of its main functionalities, text chat and video chat, to develop an online room where a user can invite another user for online video chat along with regular phone procedures (ringing, accept call, deny call, end call). The code is client side based and it makes use of the PeerJS protocol, JQuery, html, css and a small mp3 file for the phone ringing effect.

As said above, the application has been developed for testing and analysis purposes and we have not used it yet commercially on a project, something which can be easily applied when the time comes.

You can visit our online video chat by following this link:

Analysis and development of a P2P Web Video Chat via Peer JS
Cookie Settings