diff --git a/static/js/mediastream/peerscreenshare.js b/static/js/mediastream/peerscreenshare.js index e07897d6..ec5fbf1b 100644 --- a/static/js/mediastream/peerscreenshare.js +++ b/static/js/mediastream/peerscreenshare.js @@ -56,7 +56,10 @@ define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens'], f // SCTP is supported from Chrome M31. // No need to pass DTLS constraint as it is on by default in Chrome M31. // For SCTP, reliable and ordered is true by default. - this.pcConstraints = {}; + this.pcConstraints = { + mandatory: {}, + optional: [] + }; // Inject token into sessiondescription and ice candidate data. this.e.on("sessiondescription icecandidate", _.bind(function(event, data) { diff --git a/static/js/mediastream/peerxfer.js b/static/js/mediastream/peerxfer.js index 1050e3b1..bdc3dfb9 100644 --- a/static/js/mediastream/peerxfer.js +++ b/static/js/mediastream/peerxfer.js @@ -48,11 +48,17 @@ define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens', 'w audio: false, video: false }; - this.sdpConstraints = {}; + this.sdpConstraints = { + mandatory: {}, + optional: [] + }; // SCTP is supported from Chrome M31. // No need to pass DTLS constraint as it is on by default in Chrome M31. // For SCTP, reliable and ordered is true by default. - this.pcConstraints = {}; + this.pcConstraints = { + mandatory: {}, + optional: [] + }; // Inject token into sessiondescription and ice candidate data. this.e.on("sessiondescription icecandidate", _.bind(function(event, data) {