jingle
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -86,3 +86,10 @@ var _ = require('underscore'); | ||
this.state = 'active'; | ||
this.pc.answer(function (err, answer) { | ||
var constraints = { | ||
mandatory: { | ||
OfferToReceiveAudio: true, | ||
OfferToReceiveVideo: true | ||
}, | ||
enableChromeNativeSimulcast: this.setGoogConferenceFlag | ||
}; | ||
this.pc.answer(constraints, function (err, answer) { | ||
if (err) { | ||
@@ -178,2 +185,11 @@ log(self.sid + ': Could not create WebRTC answer', err); | ||
this.pc.isInitiator = false; | ||
// grumpy simulcast... | ||
if (this.setGoogConferenceFlag) { | ||
changes.contents.forEach(function (content) { | ||
if (content.name === 'video') { | ||
content.description.googConferenceFlag = true; | ||
} | ||
}); | ||
} | ||
this.pc.handleOffer({type: 'offer', jingle: changes}, function (err) { | ||
@@ -180,0 +196,0 @@ if (err) { |
{ | ||
"name": "jingle", | ||
"description": "Generic Jingle via WebRTC session manager.", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"author": "Lance Stout <lance@andyet.net>", | ||
@@ -17,4 +17,4 @@ "bugs": "https://github.com/otalk/jingle.js/issues", | ||
"mockconsole": "0.0.1", | ||
"rtcpeerconnection": "^2.4.0", | ||
"sdp-jingle-json": "^1.1.0", | ||
"rtcpeerconnection": "^2.6.0", | ||
"sdp-jingle-json": "^1.3.0", | ||
"underscore": "^1.6.0", | ||
@@ -21,0 +21,0 @@ "webrtcsupport": "^0.7.3", |
47353
15
1088
Updatedrtcpeerconnection@^2.6.0
Updatedsdp-jingle-json@^1.3.0