Open SaaShah opened 8 years ago
updated ping.html & pong.html ;
var rtcConfiguration = { iceServers: [ {url:"stun:stun.l.google.com:19302"}, ]}; var onramp = p.connect(onrampServerAddress, rtcConfiguration);
The above error is resolved but still no ping-pong messages being communicated...
I did this;
npm install -g onramp; # installs the onramp server npm install -g p-examples; # installs the p examples server onramp& # start the onramp server in the background p-examples; # start the example server in the foreground
as mentioned in the An example of how P works @ http://unsetbit.com/p/#/walkthrough
Got this error;
Uncaught SyntaxError: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': The ICE candidate could not be added.WebRTCConnection.readIceCandidate @ p.js:479Connection.readRelayedIceCandidate @ p.js:83JSONProtocol.readRelayedMessage @ p.js:248JSONProtocol.readProtocolMessage @ p.js:214JSONProtocol.readRaw @ p.js:195(anonymous function) @ p.js:534 ping.html:46 3a29bf38-27b6-4e2b-bbdf-d10e92753831 disconnected
Can anyone explain me why is this example not working.?
Thanks.