diff --git a/static/js/mediastream/peerconference.js b/static/js/mediastream/peerconference.js index 5bcc1478..4338ce55 100644 --- a/static/js/mediastream/peerconference.js +++ b/static/js/mediastream/peerconference.js @@ -183,12 +183,16 @@ define(['underscore', 'mediastream/peercall'], function(_, PeerCall) { console.log("Conference peer connection state changed", iceConnectionState, currentcall); switch (iceConnectionState) { + case "completed": case "connected": if (!this.callsIn.hasOwnProperty(currentcall.id)) { this.callsIn[currentcall.id] = true; this.pushUpdate(); } break; + case "failed": + console.warn("Conference peer connection state failed", currentcall); + break; } this.webrtc.onConnectionStateChange(iceConnectionState, currentcall); diff --git a/static/js/mediastream/webrtc.js b/static/js/mediastream/webrtc.js index ad61f64f..b930bbba 100644 --- a/static/js/mediastream/webrtc.js +++ b/static/js/mediastream/webrtc.js @@ -443,6 +443,7 @@ define([ xfer.e.on("connectionStateChange", _.bind(function(event, iceConnectionState, currentxfer) { console.log("Xfer state changed", iceConnectionState); switch (iceConnectionState) { + case "completed": case "connected": // Do nothing here, we wait for dataReady. break @@ -516,6 +517,7 @@ define([ peerscreenshare.e.on("connectionStateChange", _.bind(function(event, iceConnectionState, currentscreenshare) { console.log("Screen share state changed", iceConnectionState); switch (iceConnectionState) { + case "completed": case "connected": opts.connected(currentscreenshare); break