Browse Source

Avoid generating invalid options.

pull/176/head
Simon Eisenmann 11 years ago
parent
commit
cbe85a6d83
  1. 5
      static/js/mediastream/peerscreenshare.js
  2. 10
      static/js/mediastream/peerxfer.js

5
static/js/mediastream/peerscreenshare.js

@ -56,7 +56,10 @@ define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens'], f
// SCTP is supported from Chrome M31. // SCTP is supported from Chrome M31.
// No need to pass DTLS constraint as it is on by default in 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. // For SCTP, reliable and ordered is true by default.
this.pcConstraints = {}; this.pcConstraints = {
mandatory: {},
optional: []
};
// Inject token into sessiondescription and ice candidate data. // Inject token into sessiondescription and ice candidate data.
this.e.on("sessiondescription icecandidate", _.bind(function(event, data) { this.e.on("sessiondescription icecandidate", _.bind(function(event, data) {

10
static/js/mediastream/peerxfer.js

@ -48,11 +48,17 @@ define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens', 'w
audio: false, audio: false,
video: false video: false
}; };
this.sdpConstraints = {}; this.sdpConstraints = {
mandatory: {},
optional: []
};
// SCTP is supported from Chrome M31. // SCTP is supported from Chrome M31.
// No need to pass DTLS constraint as it is on by default in 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. // For SCTP, reliable and ordered is true by default.
this.pcConstraints = {}; this.pcConstraints = {
mandatory: {},
optional: []
};
// Inject token into sessiondescription and ice candidate data. // Inject token into sessiondescription and ice candidate data.
this.e.on("sessiondescription icecandidate", _.bind(function(event, data) { this.e.on("sessiondescription icecandidate", _.bind(function(event, data) {

Loading…
Cancel
Save