'How to establish peer to peer connection between web browser

I can access my camera by the API getusermedia(). Is it possible to establish browser to browser connection using RTCpeerconnection() API? Which browser (PC version) will support this p2p (peer to peer) connection? I hear Chrome will support this p2p but I don't know how, if anybody has an idea please help me.



Solution 1:[1]

You can read the draft of WebRTC here:

http://dev.w3.org/2011/webrtc/editor/webrtc.html

And you can read more information in: http://www.webrtc.org/

The project WebRTC, for browser based realtime communication, was open sourced by Google. So only Chorme implements it.

To enable WebRTC you should start Chrome with this switch: "--enable-media-stream".

-Mozilla has implemented the getUserMedia() API and the Aurora nightly builds contain an implementation of the Peer Connection and Data Channel APIs; preliminary support in Firefox 18.

-Opera has implemented the getUserMedia() API in its stable branch.

Solution 2:[2]

As an alternative, you might be interested in browserver which allows you to run an http server inside your browser.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Scipion
Solution 2 Golo Roden