HTML5 does P2P Video/Audio/FileSharing Communications, b/w any devices

Adobe made it possible to initiate Peer-to-peer video chat among two users, without need of a server in-between with use of Adobe flash & AIR platform alone. Same p2p communications are possible with HTML5, and it just gets easier.

Peer-to-peer streaming i.e.  voice/video frames are streamed directly between peers, without any server in between is actually possible with HTML5 specification. The result is lower latency and optimal network utilization.

Checkout the demo of HTML5 P2p communications below by ericsson:

ConnectionPeer API

ConnectionPeer API is under works for establishing direct connection between two peers, which is web browsers in this case. ConnectionPeer is a very thin protocol as it shunts out signaling and connection stuff to traditional HTTP.

ConnectionPeer establishes peer-to-peer connectivity, using the following steps:

  1. Each peer sends out its own reachability information using the getLocalConfiguration method.
  2. Next, they add the information about the other peer (obtained typically over HTTPS from the chat server) using addRemoteConfiguration method.
  3. Next, p2p connection is established, allowing for streaming data to be exchanged between the peers. When established, an onConnect event is generated and allows the application to respond with the data it wants to send out. ConnectionPeer includes methods for streaming data over the connection. These are used to add real-time voice and video streams and even HTML5 p2p file transfers.

The ConnectionPeer works almost everywhere, whether you are behind proxy, NAT or firewall. Whether you are on a desktop browser or a mobile (Android, iPhone, Blackberry), it doesn’t care, works on all WebKit browsers.

The good part of the whole story is that  IETF and W3C are standardizing this peer-to-peer support in browsers to enable real-time voice and video communication without plug-ins.

Code snippet:

Swarmplayer is one of the examples of doing HTML5 p2p video. It adds a P2P transport protocol to Firefox that allows <video src=”p2p://” > functionality. P2P transport is BitTorrent compatible.

More to come on HTML5, Open Source, Youtube, Google via @taranfx on Twitter or Facebook Fanpage.

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: -1 (from 1 vote)
HTML5 does P2P Video/Audio/FileSharing Communications, b/w any devices, 10.0 out of 10 based on 1 rating

Related Posts

Bookmark and Promote!

© 2018 Geeknizer. All rights reserved. XHTML / CSS Valid.
Designed by taranfx.