+

WebRTC samples Peer connection

This sample shows how to setup a connection between two peers using RTCPeerConnection.

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.

View source on GitHub
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载