WebRTC samples Peer-2-Peer_Connection

This sample shows how to setup a connection between two peers using RTCPeerConnection. An option to specify the SDP semantics for the connection is also available (unified-plan, plan-b or default).


SDP Semantics:

View the console to see logging. The MediaStream object localStream, and the RTCPeerConnection objects pc1 and pc2 are in global scope, so you can inspect them in the console as well.

For more information about RTCPeerConnection, see Getting Started With WebRTC.