Back to Samples

WebRTC samples Peer connection

src/content/peerconnection/restart-ice/index.html

latest726 B
Original Source

WebRTC samplesPeer connection

Local candidate id:

Not connected.

Remote candidate id:

Not connected.

StartCallRestart ICEHang Up

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