pc_test_callbacks.html [340:380]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pc1.didSetRemote = false; pc2.didSetRemote = false; pc1.ice_queued = []; pc2.ice_queued = []; pc2.onicecandidate = function(obj) { if (obj.candidate) { log("pc2 found ICE candidate: " + JSON.stringify(obj.candidate)); if (pc1.didSetRemote) { pc1.addIceCandidate(obj.candidate); } else { pc1.ice_queued.push(obj.candidate); } } else { log("pc2 got end-of-candidates signal"); } } pc1.onicecandidate = function(obj) { if (obj.candidate) { log("pc1 found ICE candidate: " + JSON.stringify(obj.candidate)); if (pc2.didSetRemote) { pc2.addIceCandidate(obj.candidate); } else { pc2.ice_queued.push(obj.candidate); } } else { log("pc1 got end-of-candidates signal"); } } pc1.onaddstream = function(obj) { log("pc1 got remote stream from pc2 " + obj.type); pc1video.mozSrcObject = obj.stream; //setTimeout(pc1video.play, 1000); } pc2.onaddstream = function(obj) { log("pc2 got remote stream from pc1 " + obj.type); pc2video.mozSrcObject = obj.stream; //setTimeout(pc2video.play, 1000); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pc_test_fps.html [306:346]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pc1.didSetRemote = false; pc2.didSetRemote = false; pc1.ice_queued = []; pc2.ice_queued = []; pc2.onicecandidate = function(obj) { if (obj.candidate) { log("pc2 found ICE candidate: " + JSON.stringify(obj.candidate)); if (pc1.didSetRemote) { pc1.addIceCandidate(obj.candidate); } else { pc1.ice_queued.push(obj.candidate); } } else { log("pc2 got end-of-candidates signal"); } } pc1.onicecandidate = function(obj) { if (obj.candidate) { log("pc1 found ICE candidate: " + JSON.stringify(obj.candidate)); if (pc2.didSetRemote) { pc2.addIceCandidate(obj.candidate); } else { pc2.ice_queued.push(obj.candidate); } } else { log("pc1 got end-of-candidates signal"); } } pc1.onaddstream = function(obj) { log("pc1 got remote stream from pc2 " + obj.type); pc1video.mozSrcObject = obj.stream; //setTimeout(pc1video.play, 1000); } pc2.onaddstream = function(obj) { log("pc2 got remote stream from pc1 " + obj.type); pc2video.mozSrcObject = obj.stream; //setTimeout(pc2video.play, 1000); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -